X-Git-Url: https://git.llucax.com/software/ev.d.git/blobdiff_plain/963061a3bf474d3863f00dc9053589eeed74cbc4..5dadbf640f14869daa2d1d21511ae7754e008225:/Makefile diff --git a/Makefile b/Makefile index 0f91853..7eb4073 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,27 @@ +DFLAGS = -Wall + +# Debug +DFLAGS += -ggdb + +# Unittest +DFLAGS += -funittest -fversion=UnitTest + +# Release +#DFLAGS += -frelease -O3 all: test -test.o: test.d ev.d - gdc -c -Wall -ggdb test.d +test.o: test.d ev/c.d + gdc -c $(DFLAGS) test.d -ev.o: ev.d - gdc -c -Wall -ggdb ev.d +ev/c.o: ev/c.d + gdc -c -o ev/c.o $(DFLAGS) ev/c.d -test: test.o ev.o - gdc -o test -lev test.o ev.o +test: test.o ev/c.o + gdc -o test -lev $(DFLAGS) test.o ev/c.o clean: - $(RM) -v *.o test + $(RM) -v *.o ev/*.o test .PHONY: clean all