blob: a891ffd030fd2b96a4c8416e68c91432eff04dc0 [file] [log] [blame]
Michal Vaskoa53ef882015-11-24 11:02:01 +01001SRCS=netopeerguid.c \
2 notification_server.c
Tomas Cejkade321aa2013-11-14 22:10:59 +01003
4HDRS=message_type.h \
Michal Vaskoa53ef882015-11-24 11:02:01 +01005 notification_server.h \
6 netopeerguid.h
Tomas Cejkade321aa2013-11-14 22:10:59 +01007
Tomas Cejka55b63df2013-11-16 01:21:42 +01008EXTRA_DIST=$(SRCS) $(HDRS)
Tomas Cejkade321aa2013-11-14 22:10:59 +01009
Michal Vaskoa53ef882015-11-24 11:02:01 +010010bin_PROGRAMS=netopeerguid
11
Tomas Cejka55b63df2013-11-16 01:21:42 +010012dist-hook:
13 cp $(SRC) $(HDRS) $(distdir)
Tomas Cejkade321aa2013-11-14 22:10:59 +010014
Michal Vaskoa53ef882015-11-24 11:02:01 +010015all: netopeerguid
Tomas Cejkade321aa2013-11-14 22:10:59 +010016
Michal Vaskoa53ef882015-11-24 11:02:01 +010017netopeerguid$(EXEEXT): netopeerguid.c notification_server.c netopeerguid.h
18 $(CC) $(CFLAGS) -o $@ $(srcdir)/netopeerguid.c $(srcdir)/notification_server.c $(LIBS)
Tomas Cejka55b63df2013-11-16 01:21:42 +010019
Michal Vaskoa53ef882015-11-24 11:02:01 +010020install-exec-hook:
21 $(INSTALL) -d $(DESTDIR)/etc/init.d/;
22 $(INSTALL_PROGRAM) -m 755 netopeerguid.rc $(DESTDIR)/etc/init.d/
Tomas Cejkade321aa2013-11-14 22:10:59 +010023clean-local:
Michal Vaskoa53ef882015-11-24 11:02:01 +010024 rm -rf netopeerguid
Tomas Cejkade321aa2013-11-14 22:10:59 +010025
Tomas Cejka55b63df2013-11-16 01:21:42 +010026distclean-local:
27 rm -rf $(RPMDIR)
Tomas Cejkade321aa2013-11-14 22:10:59 +010028