-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (26 loc) · 757 Bytes
/
Makefile
File metadata and controls
29 lines (26 loc) · 757 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
##
## Mountain CMS
## Daniel A. White
##
## Makefile
## The make file for Mountain CMS
##
## main output
mtn-cms: mtn-cms.o http.o mime.o pb.o sqlite3.o CppSQLite3.o
g++ -DSQLITE_THREADSAFE=1 -g -o $@ mtn-cms.o http.o mime.o pb.o sqlite3.o CppSQLite3.o -lpthread -ldl
## object files
mtn-cms.o: mtn-cms.cpp mtn-cms.h
g++ -DSQLITE_THREADSAFE=1 -g -c -o $@ $<
http.o: http.cpp http.h
g++ -DSQLITE_THREADSAFE=1 -g -c -o $@ $<
mime.o: mime.cpp mime.h
g++ -DSQLITE_THREADSAFE=1 -g -c -o $@ $<
pb.o: pb.cpp pb.h
g++ -DSQLITE_THREADSAFE=1 -g -c -o $@ $<
sqlite3.o: sqlite/sqlite3.c
gcc -DSQLITE_THREADSAFE=1 -g -c -o $@ $<
CppSQLite3.o: sqlite/CppSQLite3.cpp sqlite/CppSQLite3.h
g++ -DSQLITE_THREADSAFE=1 -g -c -o $@ $<
## clean
clean:
rm *.o mtn-cms