blob: c8f65346f428004268ed88a0939a8b8c98784cb3 [file] [log] [blame]
Tomas Cejkade321aa2013-11-14 22:10:59 +01001SRCS=mod_netconf.c \
Tomas Cejka55b63df2013-11-16 01:21:42 +01002 notification-server.c
Tomas Cejkade321aa2013-11-14 22:10:59 +01003
4HDRS=message_type.h \
5 notification_module.h \
6 mod_netconf.h
7
Tomas Cejka8ef3f4e2014-03-27 20:00:25 +01008noinst_PROGRAMS=webgui-backend
Tomas Cejka55b63df2013-11-16 01:21:42 +01009webgui_backend_SOURCES=mod_netconf.c notification-server.c message_type.h notification_module.h mod_netconf.h
Tomas Cejkade321aa2013-11-14 22:10:59 +010010
Tomas Cejka55b63df2013-11-16 01:21:42 +010011EXTRA_DIST=$(SRCS) $(HDRS)
Tomas Cejkade321aa2013-11-14 22:10:59 +010012
Tomas Cejka55b63df2013-11-16 01:21:42 +010013dist-hook:
14 cp $(SRC) $(HDRS) $(distdir)
Tomas Cejkade321aa2013-11-14 22:10:59 +010015
Tomas Cejka8ef3f4e2014-03-27 20:00:25 +010016all: mod_netconf.so webgui-backend
Tomas Cejkade321aa2013-11-14 22:10:59 +010017
Tomas Cejka55b63df2013-11-16 01:21:42 +010018mod_netconf.so: mod_netconf.c notification-server.c
19 $(APXS) $(LIBS) $(CFLAGS) -c -o $@ $(srcdir)/mod_netconf.c $(srcdir)/notification-server.c
Tomas Cejkade321aa2013-11-14 22:10:59 +010020
Tomas Cejka55b63df2013-11-16 01:21:42 +010021install-exec-local: mod_netconf.so
Tomas Cejka5b0e4752014-03-20 15:58:04 +010022 if [ "x${httpdmoduledir}" == x ]; then \
23 $(APXS) -i -a mod_netconf.la; else \
24 { \
25 mkdir -p "${httpdmoduledir}"; \
26 $(APXS) -i -S LIBEXECDIR="${httpdmoduledir}" -a mod_netconf.la; } \
27 fi
Tomas Cejka55b63df2013-11-16 01:21:42 +010028
29webgui-backend$(EXEEXT): mod_netconf.c notification-server.c mod_netconf.h
Tomas Cejka8ef3f4e2014-03-27 20:00:25 +010030 $(CC) $(LIBS) $(CFLAGS) -DHTTPD_INDEPENDENT `apr-1-config --cflags --cppflags --includes --link-ld` -I/usr/include/httpd -laprutil-1 -o $@ $(srcdir)/mod_netconf.c $(srcdir)/notification-server.c
Tomas Cejkade321aa2013-11-14 22:10:59 +010031
32clean-local:
33 rm -rf .libs *.la *.lo *.slo test-client webgui-backend
34
Tomas Cejka55b63df2013-11-16 01:21:42 +010035distclean-local:
36 rm -rf $(RPMDIR)
Tomas Cejkade321aa2013-11-14 22:10:59 +010037