-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.mk
More file actions
25 lines (21 loc) · 719 Bytes
/
Copy pathconfig.mk
File metadata and controls
25 lines (21 loc) · 719 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
# Mandelbrot version
VERSION = 0.1.3
VERBOSE = 1
#USE_PTHREAD = 0 # Force pthread usage
# Customize to fit your system
PKG_CONFIG = pkg-config
# Paths
PREFIX = /usr/local
# Includes and libs
INCS = `$(PKG_CONFIG) --cflags libpng` \
`$(PKG_CONFIG) --cflags zlib`
LIBS = -lm -pthread \
`$(PKG_CONFIG) --libs libpng` \
`$(PKG_CONFIG) --libs zlib`
# Flags
MYCPPFLAGS = `if [ ! -z $(USE_PTHREAD) ]; then echo -n -DUSE_PTHREAD=$(USE_PTHREAD); fi` \
-DVERBOSE=$(VERBOSE) \
-DVERSION=\"$(VERSION)\" # My Preprocessor
MYCFLAGS = -std=c99 -Wall -Wextra -pedantic \
$(INCS) $(MYCPPFLAGS) $(CPPFLAGS) $(CFLAGS) # My C-flags
MYLDFLAGS = $(LIBS) $(LDFLAGS) # My LD flags