X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=Makefile.dj;h=2088717232d6d461202889f17edf3dfd6e999a76;hp=764ad9d12285d2606ae7ecefbdda2c369ad9160d;hb=8f7234e08947a80bace3643f37214c5fb076bdfe;hpb=95432d94ee6d5cd0c1f71c36b78e195f1b96892f diff --git a/Makefile.dj b/Makefile.dj index 764ad9d..2088717 100644 --- a/Makefile.dj +++ b/Makefile.dj @@ -1,6 +1,6 @@ src = $(wildcard src/*.c) $(wildcard src/dos/*.c) -asmsrc = $(wildcard src/*.asm) -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 @@ -12,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