CHANGE mod_netconf renamed to netopeerguid
Now installing as a service netopeerguid.rc.
diff --git a/src/Makefile.am b/src/Makefile.am
index 79dcd05..a891ffd 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,28 +1,27 @@
-SRCS=mod_netconf.c \
- notification-server.c
+SRCS=netopeerguid.c \
+ notification_server.c
HDRS=message_type.h \
- notification_module.h \
- mod_netconf.h
-
-noinst_PROGRAMS=webgui-backend
-webgui_backend_SOURCES=mod_netconf.c notification-server.c message_type.h notification_module.h mod_netconf.h
+ notification_server.h \
+ netopeerguid.h
EXTRA_DIST=$(SRCS) $(HDRS)
+bin_PROGRAMS=netopeerguid
+
dist-hook:
cp $(SRC) $(HDRS) $(distdir)
-all: mod_netconf.so webgui-backend
+all: netopeerguid
-mod_netconf.so: mod_netconf.c notification-server.c
- $(CC) $(CFLAGS) -o $@ $(srcdir)/mod_netconf.c $(srcdir)/notification-server.c $(LIBS)
+netopeerguid$(EXEEXT): netopeerguid.c notification_server.c netopeerguid.h
+ $(CC) $(CFLAGS) -o $@ $(srcdir)/netopeerguid.c $(srcdir)/notification_server.c $(LIBS)
-webgui-backend$(EXEEXT): mod_netconf.c notification-server.c mod_netconf.h
- $(CC) $(CFLAGS) -o $@ $(srcdir)/mod_netconf.c $(srcdir)/notification-server.c $(LIBS)
-
+install-exec-hook:
+ $(INSTALL) -d $(DESTDIR)/etc/init.d/;
+ $(INSTALL_PROGRAM) -m 755 netopeerguid.rc $(DESTDIR)/etc/init.d/
clean-local:
- rm -rf .libs *.la *.lo *.slo webgui-backend
+ rm -rf netopeerguid
distclean-local:
rm -rf $(RPMDIR)