-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (22 loc) · 593 Bytes
/
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
BIN=bin/
COMPILER=dmd -od$(BIN)
INCLUDES=-I. -Iexternals/LuaD/
LFLAGS=-L-Lexternals/LuaD/lib/ -L-lluad -L-lluajit-5.1
DFLAGS=-w
# Aliases
default: bake
bake: Derp Derper HerpDerp
lib: Derp
bin: Derper
editor: HerpDerp
# Compiler Instructions
luad:
cd externals/LuaD; make
Derp: luad
$(COMPILER) derp/*.d $(DFLAGS) $(INCLUDES) $(LFLAGS) -oflibderp.a -lib
Derper:
$(COMPILER) derper/*.d $(DFLAGS) $(INCLUDES) -L-L$(BIN) -L-lderp $(LFLAGS) -ofbin/derper
HerpDerp:
$(COMPILER) herpderp/*.d $(DFLAGS) $(INCLUDES) -L-L$(BIN) -L-lderp $(LFLAGS) -ofbin/herpderp
GoDerper: Derper
bin/derper