X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=eradicate;a=blobdiff_plain;f=GNUmakefile;h=73f7938914d301b71395fe5748a3b199132d8a0f;hp=3fbb73f15bb519cb0948ba62e1f9fc58e2f25761;hb=HEAD;hpb=2bd7529337d75380170f58364b1328ef3b8dc845 diff --git a/GNUmakefile b/GNUmakefile index 3fbb73f..73f7938 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -5,10 +5,11 @@ obj = $(csrc:.c=.o) $(asmsrc:.asm=.o) dep = $(obj:.o=.d) bin = game +def = -DUSE_MMX inc = -Isrc -Isrc/sdl -Isrc/3dgfx -Ilibs/imago/src warn = -pedantic -Wall -CFLAGS = $(arch) $(warn) -g -MMD $(inc) `sdl-config --cflags` +CFLAGS = $(arch) $(warn) -g -MMD $(def) $(inc) `sdl-config --cflags` LDFLAGS = $(arch) -Llibs/imago -limago $(sdl_ldflags) -lm ifneq ($(shell uname -m), i386) @@ -19,7 +20,7 @@ else endif .PHONY: all -all: data $(bin) +all: $(bin) $(bin): $(obj) imago $(CC) -o $@ $(obj) $(LDFLAGS)