-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
19 lines (19 loc) · 1.23 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.PHONY: all fcgi mon demo clean
all:
@echo Use any of available ways to use this application:
@echo
@echo make fcgi
@echo make mon
@echo make demo
fcgi:
cc --std=c99 src/fcgi_version.c -I /usr/local/include -I ../ssb/src/ -L /usr/local/lib -O0 -g -o build/cblog_fcgi_debug -Wall -Wextra -Wno-unused-result -Wno-misleading-indentation -Wno-unused-parameter -lpthread -lfcgi
cc --std=c99 src/fcgi_version.c -I /usr/local/include -I ../ssb/src/ -L /usr/local/lib -O3 -o build/cblog_fcgi -Wall -Wextra -Wno-unused-result -Wno-misleading-indentation -Wno-unused-parameter -lpthread -lfcgi
strip build/cblog_fcgi
mon:
cc ../mongoose/mongoose.c src/mon_version.c -I ../mongoose/ -I ../ssb/src/ -Wall -Wextra -O0 -g -o build/cblog_mon_debug -Wno-unused-result -Wno-misleading-indentation -Wno-unused-parameter
cc ../mongoose/mongoose.c src/mon_version.c -I ../mongoose/ -I ../ssb/src/ -Wall -Wextra -O3 -o build/cblog_mon -Wno-unused-result -Wno-misleading-indentation -Wno-unused-parameter
strip build/cblog_mon
demo:
cc --std=c99 src/demo.c -O3 -o build/demo -Wall -Wextra -Wno-unused-result -Wno-misleading-indentation -Wno-unused-parameter -lpthread
clean:
rm -f build/demo build/cblog_mon build/cblog_mon_debug build/cblog_fcgi build/cblog_fcgi_debug