-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJmakefile
52 lines (41 loc) · 1.03 KB
/
Jmakefile
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
#baseDir := $(HOME)/src
#libsDir := $(baseDir)/lib
projectName := vcalendar
versions := debug release
cc_exe := vcalendar
#install_dir := ~/bin
########################################
# Set up sources & libraries here. #
########################################
ifeq ($(exe),vcalendar)
src := \
atnd.c \
ez_libc.c \
ez_libpthread.c \
ptrvec.c \
str.c \
tz_xref.c \
util.c \
vcalendar.c \
libs := pthread m
endif
local_cxxflags += -std=c++17
#local_cppflags += -I$(baseDir)/libez -I$(baseDir)/liboopinc
local_codeflags += \
-Wreturn-type \
-Wformat \
-Wchar-subscripts \
-Wparentheses -Wcast-qual \
-Wmissing-declarations \
local_ldflags += -L$(libsDir)/$(version)
########################################
# Set up custom compile flags here. #
########################################
ifeq ($(version),debug)
local_cppflags += -D_DEBUG -DDEBUG
local_codeflags += -g2 -O0
endif
ifeq ($(version),release)
local_cppflags += -DNDEBUG
local_codeflags += -g0 -O3
endif