-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (34 loc) · 842 Bytes
/
Makefile
File metadata and controls
44 lines (34 loc) · 842 Bytes
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
all: true_all
BIN?=bin
DC?=gdc
DFLAGS+=-Ibindings
SRCS:=\
core/main.d\
core/arch.d\
core/assertion.d\
core/debugger.d\
core/disassemble.d\
core/document.d\
core/edit_box.d\
core/input_sink.d\
core/instruction.d\
core/loader.d\
core/presenter.d\
core/registry.d\
core/shell.d\
core/view.d\
include plugins/plugins.mk
$(BIN)/s2: $(SRCS)
@mkdir -p $(dir $@)
$(DC) $^ $(DFLAGS) $(LDFLAGS) -o "$@"
$(BIN)/unittests: $(SRCS)
@mkdir -p $(dir $@)
$(DC) $^ $(DFLAGS) $(LDFLAGS) -funittest -o "$@"
#------------------------------------------------------------------------------
# Generic rules
#------------------------------------------------------------------------------
CXXFLAGS+=$(shell pkg-config $(PKGS) --cflags)
LDFLAGS+=$(shell pkg-config $(PKGS) --libs)
clean:
rm -rf $(BIN)
true_all: $(BIN)/s2 $(BIN)/unittests