forked from X-Plane/xptools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (26 loc) · 754 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
29
30
31
32
33
34
35
36
37
PLATFORM := $(shell uname)
ifneq (, $(findstring MINGW, $(PLATFORM)))
TARGETS := WED MeshTool ObjView DSFTool DDSTool XGrinder
else
TARGETS := WED MeshTool ObjView DSFTool DDSTool RenderFarm XGrinder RenderFarmUI
endif
.PHONY: $(TARGETS) all clean libs release release-test
all: $(TARGETS)
debug:
@$(MAKE) -s -C . conf=debug all
debug-opt:
@$(MAKE) -s -C . conf=debug_opt all
release:
@$(MAKE) -s -C . conf=release all
release-opt:
@$(MAKE) -s -C . conf=release_opt all
release-test:
@$(MAKE) -s -C . conf=release_test all
libs:
@$(MAKE) -s -C "./libs" all
clean:
@$(MAKE) -s -f ./makerules/global/toplevel.mk clean
$(TARGETS):
@export LD_RUN_PATH='$${ORIGIN}/slib' && \
$(MAKE) -s -f ./makerules/global/toplevel.mk TARGET=$(@) all
: