forked from ValdikSS/openvpn-radiusplugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.bsd
44 lines (36 loc) · 868 Bytes
/
Makefile.bsd
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
CC=g++
INCL=-I/usr/local/include
LDFLAGS=-L/usr/local/lib
LIBS=-lgcrypt -lgpg-error -lstdc++ -lm -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 \
AccountingProcess.o \
Exception.o \
PluginContext.o \
UserAuth.o \
AcctScheduler.o \
IpcSocket.o \
radiusplugin.o \
User.o \
AuthenticationProcess.o \
main.o \
UserAcct.o \
UserPlugin.o \
Config.o
all: $(PLUGIN)
$(PLUGIN): $(OBJECTS)
@echo 'BIN: $(PLUGIN)'
@$(CC) $(CFLAGS) $(OBJECTS) -o $(PLUGIN) $(LDFLAGS) $(LIBS)
%.o: %.cpp
@echo 'OBJ: $@'
@$(CC) $(CFLAGS) $(INCL) -o $@ -c $<
test: $(OBJECTS)
@$(CC) -Wall $(OBJECTS) -o main $(LDFLAGS) $(LIBS)
clean:
-rm $(PLUGIN) *.o */*.o