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
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)
cleandep:
rm -f $(dep)
endif
- .
$(LUTGEN): tools/lutgen.c
- cc -o $@ $< -lm
+ gcc -o $@ $< -lm