Michal Vasko | a53ef88 | 2015-11-24 11:02:01 +0100 | [diff] [blame] | 1 | SRCS=netopeerguid.c \ |
2 | notification_server.c | ||||
Tomas Cejka | de321aa | 2013-11-14 22:10:59 +0100 | [diff] [blame] | 3 | |
4 | HDRS=message_type.h \ | ||||
Michal Vasko | a53ef88 | 2015-11-24 11:02:01 +0100 | [diff] [blame] | 5 | notification_server.h \ |
6 | netopeerguid.h | ||||
Tomas Cejka | de321aa | 2013-11-14 22:10:59 +0100 | [diff] [blame] | 7 | |
Tomas Cejka | 55b63df | 2013-11-16 01:21:42 +0100 | [diff] [blame] | 8 | EXTRA_DIST=$(SRCS) $(HDRS) |
Tomas Cejka | de321aa | 2013-11-14 22:10:59 +0100 | [diff] [blame] | 9 | |
Michal Vasko | a53ef88 | 2015-11-24 11:02:01 +0100 | [diff] [blame] | 10 | bin_PROGRAMS=netopeerguid |
11 | |||||
Tomas Cejka | 55b63df | 2013-11-16 01:21:42 +0100 | [diff] [blame] | 12 | dist-hook: |
13 | cp $(SRC) $(HDRS) $(distdir) | ||||
Tomas Cejka | de321aa | 2013-11-14 22:10:59 +0100 | [diff] [blame] | 14 | |
Michal Vasko | 2afaac6 | 2016-03-17 10:17:31 +0100 | [diff] [blame^] | 15 | all: netopeerguid test-client |
Tomas Cejka | de321aa | 2013-11-14 22:10:59 +0100 | [diff] [blame] | 16 | |
Michal Vasko | a53ef88 | 2015-11-24 11:02:01 +0100 | [diff] [blame] | 17 | netopeerguid$(EXEEXT): netopeerguid.c notification_server.c netopeerguid.h |
18 | $(CC) $(CFLAGS) -o $@ $(srcdir)/netopeerguid.c $(srcdir)/notification_server.c $(LIBS) | ||||
Tomas Cejka | 55b63df | 2013-11-16 01:21:42 +0100 | [diff] [blame] | 19 | |
Michal Vasko | 2afaac6 | 2016-03-17 10:17:31 +0100 | [diff] [blame^] | 20 | test-client$(EXEEXT): test-client.c |
21 | $(CC) $(CFLAGS) -o $@ $(srcdir)/test-client.c $(LIBS) | ||||
22 | |||||
Michal Vasko | a53ef88 | 2015-11-24 11:02:01 +0100 | [diff] [blame] | 23 | install-exec-hook: |
24 | $(INSTALL) -d $(DESTDIR)/etc/init.d/; | ||||
25 | $(INSTALL_PROGRAM) -m 755 netopeerguid.rc $(DESTDIR)/etc/init.d/ | ||||
Tomas Cejka | de321aa | 2013-11-14 22:10:59 +0100 | [diff] [blame] | 26 | clean-local: |
Michal Vasko | a53ef88 | 2015-11-24 11:02:01 +0100 | [diff] [blame] | 27 | rm -rf netopeerguid |
Tomas Cejka | de321aa | 2013-11-14 22:10:59 +0100 | [diff] [blame] | 28 | |
Tomas Cejka | 55b63df | 2013-11-16 01:21:42 +0100 | [diff] [blame] | 29 | distclean-local: |
30 | rm -rf $(RPMDIR) | ||||
Tomas Cejka | de321aa | 2013-11-14 22:10:59 +0100 | [diff] [blame] | 31 |