-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmakefile
36 lines (26 loc) · 1.3 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
SRCFILES = d.d lexer.d operators.d parser.d expression.d statement.d declaration.d type.d scope_.d module_.d semantic.d scheduler.d analyze.d variant.d interpret.d vrange.d visitors.d error.d terminal.d cent_.d util.d hashtable.d rope_.d bst.d
OBJFILES = d.o lexer.o operators.o parser.o expression.o statement.o declaration.o type.o scope_.o module_.o semantic.o scheduler.o analyze.o variant.o interpret.o vrange.o visitors.o error.o terminal.o cent_.o util.o hashtable.o rope_.o bst.o
#DMD = dmd -m64 -O -release -noboundscheck
#DMD = dmd -g -m32 -O -release -noboundscheck
DMD = dmd -d -debug -g -m32 -L-no-pie
#DMD = dmd2/linux/bin64/dmd -d -debug -g -m32 -L-no-pie
#DMD = ../dmd/src/dmd -m32 -O -release -noboundscheck
#DMD = ../dmd/src/dmd -debug -gc -m32
#DMD = ../dmd/src/dmd -m32 -O -release -inline -noboundscheck
#DMD = gdmd -gc -m32 -L-lgphobos2 -O -release -inline -noboundscheck
#DMD = gdmd -gc -m32 -L-lgphobos2 -O -inline
#DMD = gdmd -gc -m32 -L-lgphobos2
all: d
__ttt: $(OBJFILES)
$(DMD) $(OBJFILES) -ofd
%.o: %.d
$(DMD) -J. -c $<
d: $(SRCFILES) makefile
$(DMD) -J. $(SRCFILES) -ofd
dgdc:
gdmd -m32 -L-lgphobos2 -O -release -inline -noboundscheck -J. $(SRCFILES) -ofdgdc
dldc:
ldmd2 -m32 -O -release -inline -noboundscheck -J. $(SRCFILES) -ofdldc
#$(DMD) $(OBJFILES) -ofttt
clean:
rm *.o d tt