forked from center328/openvpn-auth-radius
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (40 loc) · 941 Bytes
/
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
BLUE =\033[20;36m
GREEN =\033[32m
RED =\033[31m
ESC =\033[0m
OK =[$(GREEN) Ok $(ESC)]
FAILED =[$(RED) failed $(ESC)]
CC=g++
INCL=
LDFLAGS=
LIBS=-lgcrypt -lpthread
CFLAGS=-Wall -shared -fPIC -DPIC
PLUGIN=radiusplugin.so
OBJECTS=\
RadiusClass/RadiusAttribute.o \
RadiusClass/RadiusPacket.o \
RadiusClass/RadiusConfig.o \
RadiusClass/RadiusServer.o \
RadiusClass/RadiusVendorSpecificAttribute.o \
Exception.o \
PluginContext.o \
UserAuth.o \
IpcSocket.o \
radiusplugin.o \
User.o \
AuthenticationProcess.o \
main.o \
UserAcct.o \
UserPlugin.o \
Config.o
all: $(PLUGIN)
$(PLUGIN): $(OBJECTS)
@echo -e 'BIN: $(GREEN) $(PLUGIN) $(ESC)'
@$(CC) $(CFLAGS) $(OBJECTS) -o $(PLUGIN) $(LDFLAGS) $(LIBS)
%.o: %.cpp
@echo -e 'OBJ: $(GREEN) $@ $(ESC)'
@$(CC) $(INCL) $(CFLAGS) -o $@ -c $<
test: $(OBJECTS)
@$(CC) -Wall $(OBJECTS) -o main $(LDFLAGS) $(LIBS)
clean:
-rm $(PLUGIN) *.o */*.o