-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (28 loc) · 733 Bytes
/
Makefile
File metadata and controls
38 lines (28 loc) · 733 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
30
31
32
33
34
35
36
37
include Makefile.inc
DOM_SRC = ./dom
PARSER_SRC = ./parser
STRUCTS = ./data_structures
SELECTORS = ./selectors
OUT = xmlquery
all: exec so
object_code:
make -C $(DOM_SRC) all
make -C $(PARSER_SRC) all
make -C $(STRUCTS) all
make -C $(SELECTORS) all
tests: so
make -C tests
exec: object_code
$(CC) $(CFLAGS) -o $(OUT) $(PARSER_SRC)/*.o $(DOM_SRC)/*.o $(STRUCTS)/*.o $(SELECTORS)/*.o main.c
clean:
make -C $(DOM_SRC) clean
make -C $(PARSER_SRC) clean
make -C $(STRUCTS) clean
make -C $(SELECTORS) clean
rm -rf *~ *.o $(OUT) libxmlquery.so
so: object_code
$(CC) $(CFLAGS) $(PARSER_SRC)/*.o $(DOM_SRC)/*.o $(STRUCTS)/*.o $(SELECTORS)/*.o -shared -o libxmlquery.so
install:
./install.sh
uninstall:
./install.sh -u