minor makefile fixes
[retrobench] / Makefile.dj
index 549dfc1..3b487f7 100644 (file)
@@ -1,5 +1,5 @@
 src = $(wildcard src/*.c) $(wildcard src/dos/*.c)
-ssrc = sinlut.s
+ssrc = $(wildcard src/*.s) sinlut.s
 obj = $(src:.c=.odj) $(ssrc:.s=.odj)
 dep = $(src:.c=.d)
 coff = rbench
@@ -20,11 +20,11 @@ AS = $(TC)as
 
 warn = -pedantic -Wall -Wno-deprecated-declarations
 dbg = -g
-opt = -O3 -ffast-math
+opt = -O3 -ffast-math -fno-strict-aliasing
 inc = -Isrc
 def = -DNO_STDINT_H
 
-CFLAGS = -pedantic $(warn) $(dbg) $(opt) $(def) $(inc) -fno-strict-aliasing -MMD
+CFLAGS = $(warn) $(dbg) $(opt) $(def) $(inc) -MMD
 LDFLAGS = -Wl,-Map=link.map
 
 $(bin): $(obj)
@@ -69,7 +69,6 @@ clean:
 cleandep:
        rm -f $(dep)
 endif
-       .
 
 $(LUTGEN): tools/lutgen.c
-       cc -o $@ $< -lm
+       gcc -o $@ $< -lm