-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
54 lines (46 loc) · 1.54 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
###################################################
# 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 $(P)/src $(P)
VPATH := $(P)/src $(P)/src/utils $(THIRDPART_DIR)
ifeq ($(OS),Windows)
LIB_FILES += src/utils/dirent.c
DEFINES += -DUSE_WINDOWS -DHAVE_AES
else
DEFINES += -UUSE_WINDOWS -DHAVE_AES
endif
THIRDPART_LIBS := $(abspath $(THIRDPART_DIR)/minizip/build/libminizip.a)
THIRDPART_LIBS += $(abspath $(THIRDPART_DIR)/minizip/build/libaes.a)
THIRDPART_LIBS += $(abspath $(THIRDPART_DIR)/zlib-ng/build/libz.a)
###################################################
# Documentation
#
PATH_PROJECT_LOGO := $(PROJECT_DOC_DIR)/doxygen-logo.png
###################################################
# Generic Makefile rules
#
include $(M)/rules/Makefile
###################################################
# Extra rules
#
all:: demos
.PHONY: demos
demos: $(TARGET_STATIC_LIB_NAME)
$(Q)$(MAKE) --no-print-directory --directory=doc/demos/Unzipper all
clean::
$(Q)$(MAKE) --no-print-directory --directory=doc/demos/Unzipper clean
install::
$(Q)$(MAKE) --no-print-directory --directory=doc/demos/Unzipper install