-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
41 lines (34 loc) · 1.02 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
###################################################
# Location of the project directory and Makefiles
#
P := .
M := $(P)/.makefile
###################################################
# Project definition
#
include $(P)/Makefile.common
TARGET_NAME := $(PROJECT_NAME)
TARGET_DESCRIPTION := An open source implementation of the SimCity 2013 simulation engine GlassBox
include $(M)/project/Makefile
###################################################
# Compile shared and static libraries
#
LIB_FILES := $(call rwildcard,src,*.cpp)
INCLUDES := $(P)/include
VPATH := $(P)/src
DEFINES := -DVIRTUAL= -DDESIRED_GRID_SIZE=30u
###################################################
# Generic Makefile rules
#
include $(M)/rules/Makefile
###################################################
# Extra rules
#
all:: demo
.PHONY: demo
demo: $(TARGET_STATIC_LIB_NAME)
$(Q)$(MAKE) --no-print-directory --directory=demo all
clean::
$(Q)$(MAKE) --no-print-directory --directory=demo clean
install::
$(Q)$(MAKE) --no-print-directory --directory=demo install