-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
44 lines (33 loc) · 2.48 KB
/
Makefile
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
all: libsqlite3.a libvfs-ramcloud.a test test2 test3 upload download delete
DEBUG = no
ifeq ($(DEBUG),yes)
DEBUGFLAGS = -DDEBUG
endif
delete: delete.c vfs-ramcloud.h vfs-ramcloud-stats.h libvfs-ramcloud.a libsqlite3.a
gcc -pthread -std=c99 -O2 -g -Wall -o delete delete.c libvfs-ramcloud.a libsqlite3.a -ldl -lramcloud
download: download.c vfs-ramcloud.h vfs-ramcloud-stats.h libvfs-ramcloud.a libsqlite3.a
gcc -pthread -std=c99 -O2 -g -Wall -o download download.c libvfs-ramcloud.a libsqlite3.a -ldl -lramcloud
upload: upload.c vfs-ramcloud.h vfs-ramcloud-stats.h libvfs-ramcloud.a libsqlite3.a
gcc -pthread -std=c99 -O2 -g -Wall -o upload upload.c libvfs-ramcloud.a libsqlite3.a -ldl -lramcloud
test3: test3.c vfs-ramcloud.h vfs-ramcloud-stats.h libvfs-ramcloud.a libsqlite3.a
gcc -pthread -std=c99 -O2 -g -Wall -o test3 test3.c libsqlite3.a libvfs-ramcloud.a -ldl -lramcloud
test2: test2.c vfs-ramcloud.h vfs-ramcloud-stats.h libvfs-ramcloud.a libsqlite3.a
gcc -pthread -std=c99 -O2 -g -Wall -o test2 test2.c libsqlite3.a libvfs-ramcloud.a -ldl -lramcloud
test: test.c vfs-ramcloud.h libvfs-ramcloud.a libsqlite3.a
gcc -pthread -std=c99 -O2 -g -Wall -o test test.c libsqlite3.a libvfs-ramcloud.a -ldl -lramcloud
libvfs-ramcloud.a: vfs-ramcloud.c vfs-ramcloud.h vfs-ramcloud-stats.h md5.c md5.h
gcc -I. $(DEBUGFLAGS) -fPIC -g -O2 -fno-strict-aliasing -fasynchronous-unwind-tables -fno-omit-frame-pointer -fno-optimize-sibling-calls -fvisibility=hidden -Wall -MT vfs-ramcloud.o -MD -MP -c -o vfs-ramcloud.o vfs-ramcloud.c
gcc -I. -fPIC -g -O2 -fno-strict-aliasing -fasynchronous-unwind-tables -fno-omit-frame-pointer -fno-optimize-sibling-calls -fvisibility=hidden -Wall -MT md5.o -MD -MP -c -o md5.o md5.c
ar cru libvfs-ramcloud.a vfs-ramcloud.o md5.o
ranlib libvfs-ramcloud.a
libsqlite3.a: sqlite3.c sqlite3.h
gcc -DHAVE_CONFIG_H -I. -I../.. -w -fPIC -DSQLITE_OMIT_WAL=1 -DSQLITE_ENABLE_ATOMIC_WRITE=1 -DSQLITE_THREADSAFE=2 -DSQLITE_ENABLE_MEMORY_MANAGEMENT -DSQLITE_ENABLE_MEMSYS5 -g -O2 -g -fno-strict-aliasing -fasynchronous-unwind-tables -fno-omit-frame-pointer -fno-optimize-sibling-calls -fvisibility=hidden -Wall -D_REENTRANT -D__EXTENSIONS__ -D_LARGEFILE64_SOURCE -D__LARGE64_FILES -D_BUILT_IN_LIBCURL -D_BUILT_IN_SQLITE3 -D_BUILTIN_IN_ZLIB -MT sqlite3.o -MD -MP -c -o sqlite3.o sqlite3.c
ar cru libsqlite3.a sqlite3.o
ranlib libsqlite3.a
libclean:
rm -f libvfs-ramcloud.a vfs-ramcloud.o md5.o
clean:
rm -f *.o *.d
rm -f libsqlite3.a
rm -f libvfs-ramcloud.a
rm -f test test2 test3 download upload delete