Tomas Cejka | de321aa | 2013-11-14 22:10:59 +0100 | [diff] [blame] | 1 | SRCS=mod_netconf.c \ |
Tomas Cejka | 55b63df | 2013-11-16 01:21:42 +0100 | [diff] [blame] | 2 | notification-server.c |
Tomas Cejka | de321aa | 2013-11-14 22:10:59 +0100 | [diff] [blame] | 3 | |
| 4 | HDRS=message_type.h \ |
| 5 | notification_module.h \ |
| 6 | mod_netconf.h |
| 7 | |
Tomas Cejka | 8ef3f4e | 2014-03-27 20:00:25 +0100 | [diff] [blame] | 8 | noinst_PROGRAMS=webgui-backend |
Tomas Cejka | 55b63df | 2013-11-16 01:21:42 +0100 | [diff] [blame] | 9 | webgui_backend_SOURCES=mod_netconf.c notification-server.c message_type.h notification_module.h mod_netconf.h |
Tomas Cejka | de321aa | 2013-11-14 22:10:59 +0100 | [diff] [blame] | 10 | |
Tomas Cejka | 55b63df | 2013-11-16 01:21:42 +0100 | [diff] [blame] | 11 | EXTRA_DIST=$(SRCS) $(HDRS) |
Tomas Cejka | de321aa | 2013-11-14 22:10:59 +0100 | [diff] [blame] | 12 | |
Tomas Cejka | 55b63df | 2013-11-16 01:21:42 +0100 | [diff] [blame] | 13 | dist-hook: |
| 14 | cp $(SRC) $(HDRS) $(distdir) |
Tomas Cejka | de321aa | 2013-11-14 22:10:59 +0100 | [diff] [blame] | 15 | |
Tomas Cejka | 8ef3f4e | 2014-03-27 20:00:25 +0100 | [diff] [blame] | 16 | all: mod_netconf.so webgui-backend |
Tomas Cejka | de321aa | 2013-11-14 22:10:59 +0100 | [diff] [blame] | 17 | |
Tomas Cejka | 55b63df | 2013-11-16 01:21:42 +0100 | [diff] [blame] | 18 | mod_netconf.so: mod_netconf.c notification-server.c |
| 19 | $(APXS) $(LIBS) $(CFLAGS) -c -o $@ $(srcdir)/mod_netconf.c $(srcdir)/notification-server.c |
Tomas Cejka | de321aa | 2013-11-14 22:10:59 +0100 | [diff] [blame] | 20 | |
Tomas Cejka | 55b63df | 2013-11-16 01:21:42 +0100 | [diff] [blame] | 21 | install-exec-local: mod_netconf.so |
Tomas Cejka | 5b0e475 | 2014-03-20 15:58:04 +0100 | [diff] [blame] | 22 | 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 Cejka | 55b63df | 2013-11-16 01:21:42 +0100 | [diff] [blame] | 28 | |
| 29 | webgui-backend$(EXEEXT): mod_netconf.c notification-server.c mod_netconf.h |
Tomas Cejka | 8ef3f4e | 2014-03-27 20:00:25 +0100 | [diff] [blame] | 30 | $(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 Cejka | de321aa | 2013-11-14 22:10:59 +0100 | [diff] [blame] | 31 | |
| 32 | clean-local: |
| 33 | rm -rf .libs *.la *.lo *.slo test-client webgui-backend |
| 34 | |
Tomas Cejka | 55b63df | 2013-11-16 01:21:42 +0100 | [diff] [blame] | 35 | distclean-local: |
| 36 | rm -rf $(RPMDIR) |
Tomas Cejka | de321aa | 2013-11-14 22:10:59 +0100 | [diff] [blame] | 37 | |