-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
28 lines (22 loc) · 873 Bytes
/
Copy pathmakefile
File metadata and controls
28 lines (22 loc) · 873 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
.PHONY: first clean engine editor libraries
RootDir = $(dir $(realpath $(lastword $(MAKEFILE_LIST))))
EditorAppName = TacticksEditor.out
EngineLibName = Tacticks.so
InstallFolder = Install
CleanFiles = *.log $(InstallFolder)
MakeFlags = --no-print-directory
first: all
all: engine editor libraries
editor: engine
@(cd Editor/ && make $(MakeFlags) IPath=../$(InstallFolder)/include LPath=../$(InstallFolder)/lib)
engine:
@(cd Engine/ && make $(MakeFlags) install InstallFolder=../$(InstallFolder))
libraries:
@(cd Libraries/ && make $(MakeFlags) IPath=../$(InstallFolder)/include )
clean:
@(cd Engine/ && make $(MakeFlags) clean)
@(cd Editor/ && make $(MakeFlags) clean)
@(cd Libraries/ && make $(MakeFlags) clean)
rm -rf $(CleanFiles) *.out *.so *.dll
run: all
@(export LD_LIBRARY_PATH=$(RootDir)Install/lib/:$$LD_LIBRARY_PATH && ./Editor/TacticksEditor.out)