forked from zorun/kea-hook-runscript
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
28 lines (21 loc) · 768 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
KEA_MSG_COMPILER ?= kea-msg-compiler
KEA_INCLUDE ?= /usr/include/kea
KEA_LIB ?= /usr/lib
OBJECTS = src/messages.o src/logger.o src/load.o src/runscript.o src/callouts.o src/version.o
DEPS = $(OBJECTS:.o=.d)
CXXFLAGS = -I $(KEA_INCLUDE) -fPIC -Wno-deprecated
LDFLAGS = -L $(KEA_LIB) -shared -lkea-dhcpsrv -lkea-dhcp++ -lkea-hooks -lkea-log -lkea-util -lkea-exceptions
kea-hook-runscript.so: $(OBJECTS)
$(CXX) -o $@ $(CXXFLAGS) $(LDFLAGS) $(OBJECTS)
%.o: %.cc
$(CXX) -MMD -MP -c $(CXXFLAGS) -o $@ $<
# Compile messages (for logging)
src/messages.h src/messages.cc: s-messages
s-messages: src/messages.mes
$(KEA_MSG_COMPILER) -d src/ $<
touch $@
clean:
rm -f src/*.o
rm -f src/messages.h src/messages.cc s-messages
rm -f kea-auth-radius.so
-include $(DEPS)