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 | a53ef88 | 2015-11-24 11:02:01 +0100 | [diff] [blame] | 15 | all: netopeerguid |
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 | a53ef88 | 2015-11-24 11:02:01 +0100 | [diff] [blame] | 20 | install-exec-hook: |
21 | $(INSTALL) -d $(DESTDIR)/etc/init.d/; | ||||
22 | $(INSTALL_PROGRAM) -m 755 netopeerguid.rc $(DESTDIR)/etc/init.d/ | ||||
Tomas Cejka | de321aa | 2013-11-14 22:10:59 +0100 | [diff] [blame] | 23 | clean-local: |
Michal Vasko | a53ef88 | 2015-11-24 11:02:01 +0100 | [diff] [blame] | 24 | rm -rf netopeerguid |
Tomas Cejka | de321aa | 2013-11-14 22:10:59 +0100 | [diff] [blame] | 25 | |
Tomas Cejka | 55b63df | 2013-11-16 01:21:42 +0100 | [diff] [blame] | 26 | distclean-local: |
27 | rm -rf $(RPMDIR) | ||||
Tomas Cejka | de321aa | 2013-11-14 22:10:59 +0100 | [diff] [blame] | 28 |