forked from cfadmin-cn/mongo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (20 loc) · 668 Bytes
/
Makefile
File metadata and controls
25 lines (20 loc) · 668 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
.PHONY : build clean
default :
@echo "======================================="
@echo "Please use 'make build' command to build it.."
@echo "Please use 'make clean' command to clean all."
@echo "======================================="
CC = cc
RM = rm -rf
MV = mv
INCLUDES += -I../../src -I../../../src -I/usr/local/include
LIBS += -L../ -L../../ -L../../../ -L/usr/local/lib
CFLAGS += -g0 -O3 -shared -fPIC
MICRO += -fno-omit-frame-pointer -Wno-implicit-fallthrough -Wall -Wextra -Wno-unused-parameter
DLL += -lcore
build:
@$(CC) -o lbson.so lbson.c $(INCLUDES) $(LIBS) $(CFLAGS) $(MICRO) $(DLL)
@$(MV) *.so ../
@echo 'Successed.'
clean:
@$(RM) main *.so