-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
54 lines (45 loc) · 1.42 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
45
46
47
48
49
50
51
52
53
54
include Makefile.inc
all:
mkdir -p $(BUILD_DIR)
make -C sax_parser/
make -C localregistry/user/
make -C localregistry/daemon/
make -C configuration/ objs
make -C configuration/user/
make -C datastructures/
make -C handler/
lib: all
$(CC) -fPIC -shared -Wl,-soname,lib$(LIB_NAME).so -o lib$(LIB_NAME).so.1.0.1 -lrt -lpthread $(BUILD_DIR)*.o
install: lib
cp -r include/ /usr/include/$(LIB_NAME)
cp lib$(LIB_NAME).so.1.0.1 /usr/lib/
ln -s /usr/lib/lib$(LIB_NAME).so.1.0.1 /usr/lib/lib$(LIB_NAME).so
uninstall:
rm -rf /usr/include/$(LIB_NAME) /usr/lib/lib$(LIB_NAME).so.1.0.1 /usr/lib/lib$(LIB_NAME).so
install_scripts:
make -C localregistry/daemon/ install
make -C localregistry/shell/ install
make -C interceptor_shell/ install
make -C configuration/ install
uninstall_scripts:
make -C localregistry/daemon/ uninstall
make -C localregistry/shell/ uninstall
make -C interceptor_shell/ uninstall
make -C configuration/ uninstall
redo: clean uninstall all install uninstall_scripts install_scripts
deploy: clean lib
rm -rf deploy/
./deploy.sh
rm -f deploy.tgz
tar cvzf deploy.tgz deploy/
clean:
rm -rf $(BUILD_DIR) lib$(LIB_NAME).so.1.0.1
make -C sax_parser/ clean
make -C localregistry/user/ clean
make -C localregistry/daemon/ clean
make -C localregistry/shell/ clean
make -C datastructures/ clean
make -C handler/ clean
make -C configuration/ clean
make -C configuration/user clean
make -C interceptor_shell/ clean