LDC build option
This commit is contained in:
parent
cf9876f565
commit
90fa520220
12
makefile
12
makefile
|
@ -1,10 +1,14 @@
|
||||||
SRC := $(shell find src -name "*.d") $(shell find libdparse/src -name "*.d")
|
SRC := $(shell find src -name "*.d") $(shell find libdparse/src -name "*.d")
|
||||||
COMPILER := dmd
|
|
||||||
INCLUDE_PATHS := -Ilibdparse/src
|
INCLUDE_PATHS := -Ilibdparse/src
|
||||||
FLAGS := -g -w $(INCLUDE_PATHS)
|
DMD_FLAGS := -g -w $(INCLUDE_PATHS)
|
||||||
|
LDC_FLAGS := -g -w -oq $(INCLUDE_PATHS)
|
||||||
|
|
||||||
all: $(SRC)
|
dmd: $(SRC)
|
||||||
$(COMPILER) $(FLAGS) $(SRC) -ofbin/dfmt
|
dmd $(DMD_FLAGS) $(SRC) -ofbin/dfmt
|
||||||
|
|
||||||
|
ldc: $(SRC)
|
||||||
|
ldc2 $(LDC_FLAGS) $(SRC) -ofbin/dfmt
|
||||||
|
-rm -f *.o
|
||||||
|
|
||||||
test: bin/dfmt
|
test: bin/dfmt
|
||||||
cd tests && ./test.sh
|
cd tests && ./test.sh
|
||||||
|
|
Loading…
Reference in New Issue