-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathMakefile
More file actions
60 lines (51 loc) · 1.84 KB
/
Makefile
File metadata and controls
60 lines (51 loc) · 1.84 KB
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
55
56
57
58
59
60
###################################################
# Location of the project directory and Makefiles
#
P := .
M := $(P)/.makefile
###################################################
# Project definition
#
include $(P)/Makefile.common
TARGET_NAME := $(PROJECT_NAME)
TARGET_DESCRIPTION := Zipper is a C++ library for creating and reading zip archives.
CXX_STANDARD := --std=c++14
include $(M)/project/Makefile
###################################################
# Compile shared and static libraries
#
LIB_FILES := $(call rwildcard,src,*.cpp)
ifeq ($(OS),Windows)
LIB_FILES += src/utils/dirent.c
endif
INCLUDES := $(P)/include $(P)/src $(P)
VPATH := $(P)/src $(P)/src/utils $(THIRD_PARTIES_DIR)
DEFINES += -DHAVE_AES
###################################################
# Third party libraries (compiled with make compile-external-libs)
#
THIRD_PARTIES_LIBS := $(abspath $(THIRD_PARTIES_DIR)/minizip/build/libminizip.a)
THIRD_PARTIES_LIBS += $(abspath $(THIRD_PARTIES_DIR)/minizip/build/libaes.a)
THIRD_PARTIES_LIBS += $(abspath $(THIRD_PARTIES_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
$(Q)$(MAKE) --no-print-directory --directory=doc/demos/Zipper all
clean::
$(Q)$(MAKE) --no-print-directory --directory=doc/demos/Unzipper clean
$(Q)$(MAKE) --no-print-directory --directory=doc/demos/Zipper clean
install::
$(Q)$(MAKE) --no-print-directory --directory=doc/demos/Unzipper install
$(Q)$(MAKE) --no-print-directory --directory=doc/demos/Zipper install