-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
39 lines (29 loc) · 1.06 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
##
## V8, C Binding, 2021
## Makefile
##
SRC = $(shell find src -name *.cc)
OBJ = $(SRC:.cc=.o)
NAME = libv8c.so
CXXFLAGS = -Wall \
-W \
-Wno-unused-parameter \
-Iinclude \
-fPIC \
-DV8_COMPRESS_POINTERS \
-g
LDFLAGS = -shared \
-Llibs \
-lstdc++ \
-lpthread \
-lv8 \
-ldl \
-lm
all: $(NAME)
$(NAME):$(OBJ)
gcc -o $(NAME) $(OBJ) $(LDFLAGS)
clean:
rm -f $(OBJ)
fclean: clean
rm -f $(NAME)
re: fclean all