summarylogtreecommitdiffstats
path: root/Makefile
blob: 2dbc552d45d44b3d6cac53dbb147d32f0fc3f9e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
DCC = dmd
DFLAGS = -J. -Jlibrary
SRC = $(wildcard *.d)
OBJ = $(SRC:.d=.o)
OUT = psi

.PHONY: all debug release clean

all: debug

debug:   DFLAGS += -gc -debug
release: DFLAGS += -O -release

debug release: $(OUT)

$(OUT): $(OBJ)
	$(DCC) $(DFLAGS) -of$@ $(OBJ)

clean:
	rm -f *~ $(OBJ) $(OUT) trace.{def,log}

%.o: %.d
	$(DCC) $(DFLAGS) -c $<