X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=Makefile.dj;h=2088717232d6d461202889f17edf3dfd6e999a76;hp=0f152b7d60e5f0dc50bab522bc62a1b0bb524693;hb=8f7234e08947a80bace3643f37214c5fb076bdfe;hpb=a6290d5ab0d369d6807bad92d05a4f38560bf111 diff --git a/Makefile.dj b/Makefile.dj index 0f152b7..2088717 100644 --- a/Makefile.dj +++ b/Makefile.dj @@ -1,5 +1,6 @@ src = $(wildcard src/*.c) $(wildcard src/dos/*.c) -obj = $(src:.c=.cof) +asmsrc = $(wildcard src/*.asm) $(wildcard src/dos/*.asm) +obj = $(src:.c=.cof) $(asmsrc:.asm=.cof) dep = $(obj:.cof=.dep) bin = demo.exe @@ -11,12 +12,13 @@ else endif inc = -Isrc -Isrc/dos -Ilibs/imago/src -Ilibs/mikmod/include -opt = -O3 -ffast-math +opt = -O3 -ffast-math -fno-strict-aliasing dbg = -g +warn = -pedantic -Wall -Wno-unused-function -Wno-unused-variable CC = $(TOOLPREFIX)gcc AR = $(TOOLPREFIX)ar -CFLAGS = -pedantic -Wall -march=pentium $(dbg) $(opt) $(inc) +CFLAGS = $(warn) -march=pentium $(dbg) $(opt) $(inc) LDFLAGS = libs/imago/imago.dja libs/mikmod/dos/libmikmod.a $(bin): $(obj) imago mikmod