X-Git-Url: https://git.llucax.com/software/ev.d.git/blobdiff_plain/0e4f389ccd6ca6587237f60c81864c8f17be47e6..refs/heads/master:/Makefile diff --git a/Makefile b/Makefile index b6b1e19..6706f15 100644 --- a/Makefile +++ b/Makefile @@ -9,19 +9,30 @@ DFLAGS += -ggdb # Release #DFLAGS += -frelease -O3 -all: test +TARGETS = ctest dtest -test.o: test.d ev.d - gdc -c $(DFLAGS) test.d +all: $(TARGETS) -ev.o: ev.d - gdc -c $(DFLAGS) ev.d +ctest.o: ctest.d ev/c.d + gdc -c $(DFLAGS) ctest.d -test: test.o ev.o - gdc -o test -lev $(DFLAGS) test.o ev.o +dtest.o: dtest.d ev/c.d ev/d.d + gdc -c $(DFLAGS) dtest.d + +ev/c.o: ev/c.d + gdc -c -o ev/c.o $(DFLAGS) ev/c.d + +ev/d.o: ev/d.d + gdc -c -o ev/d.o $(DFLAGS) ev/d.d + +ctest: ctest.o ev/c.o + gdc -o ctest -lev $(DFLAGS) ctest.o ev/c.o + +dtest: dtest.o ev/c.o ev/d.o + gdc -o dtest -lev $(DFLAGS) dtest.o ev/c.o ev/d.o clean: - $(RM) -v *.o test + $(RM) -v *.o ev/*.o $(TARGETS) .PHONY: clean all