forked from marekzmyslowski/libfiowrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (30 loc) · 892 Bytes
/
Copy pathMakefile
File metadata and controls
41 lines (30 loc) · 892 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
CC = clang
CFLAGS = -ldl -fPIC -shared
.PHONY: all debug demo examples help
help:
@echo ''
@echo ' usage: make [target]'
@echo ''
@echo ' release - build release version of the libraries'
@echo ' debug - build debug version of the libraries'
@echo ' all - build everything (release, demo, example)'
@echo ' demo - build demo applications'
@echo ' examples - build example applications'
@echo ' clean - clean libraries and demo applications'
@echo ''
all: release demo examples
release: libfioinfo libfiowrapper
release: CFLAGS += -O3
debug: CFLAGS += -DDEBUG
debug: libfioinfo libfiowrapper
demo:
$(MAKE) -C ./examples/demo
examples:
cd ./examples/libpng; ./build.sh
libfioinfo: libfioinfo.c
$(CC) $(CFLAGS) $? -o $@.so
libfiowrapper: libfiowrapper.c
$(CC) $(CFLAGS) $? -o $@.so
clean:
rm -f libfioinfo.so libfiowrapper.so
$(MAKE) clean -C ./examples/demo