blob: f18f1b85c21f8623ce111906fab42a2b9600d12b [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 Vasko2afaac62016-03-17 10:17:31 +010015all: netopeerguid test-client
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 Vasko2afaac62016-03-17 10:17:31 +010020test-client$(EXEEXT): test-client.c
21 $(CC) $(CFLAGS) -o $@ $(srcdir)/test-client.c $(LIBS)
22
Michal Vaskoa53ef882015-11-24 11:02:01 +010023install-exec-hook:
24 $(INSTALL) -d $(DESTDIR)/etc/init.d/;
25 $(INSTALL_PROGRAM) -m 755 netopeerguid.rc $(DESTDIR)/etc/init.d/
Tomas Cejkade321aa2013-11-14 22:10:59 +010026clean-local:
Michal Vaskoa53ef882015-11-24 11:02:01 +010027 rm -rf netopeerguid
Tomas Cejkade321aa2013-11-14 22:10:59 +010028
Tomas Cejka55b63df2013-11-16 01:21:42 +010029distclean-local:
30 rm -rf $(RPMDIR)
Tomas Cejkade321aa2013-11-14 22:10:59 +010031