-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
68 lines (57 loc) · 2.12 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
REL_FLAGS = -l- -O3 -Xs- -XX
DREL_FLAGS =
DBG_FLAGS = -l- -dDEBUGMODE -g
DDBG_FLAGS =
FLAGS = $(DBG_FLAGS)
DFLAGS = $(DDBG_FLAGS)
DIRS = -Fulib -FUobj
DDIRS = -Ilib -Ulib -Oobj -Q
EX_OUT = -FEexamples
DEX_OUT = -Eexamples
LIB_OUT = -FEobj
DLIB_OUT = -Eobj
CC = fpc
DCC = DCC32
all: release example
all_delphi: release_delphi example_delphi
debug:
@$(CC) $(DBG_FLAGS) $(DIRS) lib/*.pas
debug_delphi:
@$(DCC) $(DDBG_FLAGS) $(DDIRS) lib\*.pas
release:
@$(CC) $(REL_FLAGS) $(DIRS) lib/*.pas
release_delphi:
@$(DCC) $(DREL_FLAGS) $(DDIRS) lib\\*.pas
example:
@$(CC) $(FLAGS) $(DIRS) $(EX_OUT) examples/ex_audio_simple.pas
@$(CC) $(FLAGS) $(DIRS) $(EX_OUT) examples/ex_blit.pas
@$(CC) $(FLAGS) $(DIRS) $(EX_OUT) examples/ex_font.pas
@$(CC) $(FLAGS) $(DIRS) $(EX_OUT) examples/ex_gldepth.pas
@$(CC) $(FLAGS) $(DIRS) $(EX_OUT) examples/ex_haiku.pas
@$(CC) $(FLAGS) $(DIRS) $(EX_OUT) examples/ex_lines.pas
@$(CC) $(FLAGS) $(DIRS) $(EX_OUT) examples/ex_prim.pas
@$(CC) $(FLAGS) $(DIRS) $(EX_OUT) examples/ex_rotate.pas
@$(CC) $(FLAGS) $(DIRS) $(EX_OUT) examples/ex_scale.pas
@$(CC) $(FLAGS) $(DIRS) $(EX_OUT) examples/ex_transform.pas
@$(CC) $(FLAGS) $(DIRS) $(EX_OUT) examples/ex_warp_mouse.pas
example_delphi:
@$(DCC) $(DFLAGS) $(DDIRS) $(DEX_OUT) examples\ex_audio_simple.pas
@$(DCC) $(DFLAGS) $(DDIRS) $(DEX_OUT) examples\ex_audio_simple.pas
@$(DCC) $(DFLAGS) $(DDIRS) $(DEX_OUT) examples\ex_blit.pas
@$(DCC) $(DFLAGS) $(DDIRS) $(DEX_OUT) examples\ex_font.pas
#@$(DCC) $(DFLAGS) $(DDIRS) $(DEX_OUT) examples\ex_gldepth.pas
@$(DCC) $(DFLAGS) $(DDIRS) $(DEX_OUT) examples\ex_haiku.pas
@$(DCC) $(DFLAGS) $(DDIRS) $(DEX_OUT) examples\ex_lines.pas
#@$(DCC) $(DFLAGS) $(DDIRS) $(DEX_OUT) examples\ex_prim.pas
@$(DCC) $(DFLAGS) $(DDIRS) $(DEX_OUT) examples\ex_rotate.pas
@$(DCC) $(DFLAGS) $(DDIRS) $(DEX_OUT) examples\ex_scale.pas
@$(DCC) $(DFLAGS) $(DDIRS) $(DEX_OUT) examples\ex_transform.pas
@$(DCC) $(DFLAGS) $(DDIRS) $(DEX_OUT) examples\ex_warp_mouse.pas
clean:
@rm -f obj/*.o \
obj/*.a \
obj/*.s \
obj/*.ppu \
obj/*.dcu \
examples/*.exe
.PHONY: all debug release example test clean