diff options
author | Nate Straz <nstraz@redhat.com> | 2005-09-13 19:31:26 +0000 |
---|---|---|
committer | Nathan Straz <nstraz@redhat.com> | 2008-09-23 09:37:44 -0400 |
commit | 988f9b104087022ecf08ed881aa723fcb33a46b6 (patch) | |
tree | 409259edcf7b38c088737667e2c2ed3e08c9c9a5 /Makefile | |
parent | 2ffadb769727f0be36df3875cff74ac5a93475fe (diff) | |
download | qarsh-988f9b104087022ecf08ed881aa723fcb33a46b6.tar.gz qarsh-988f9b104087022ecf08ed881aa723fcb33a46b6.tar.xz qarsh-988f9b104087022ecf08ed881aa723fcb33a46b6.zip |
- Split qarshd and btimed into their own package with their xinetd files.
- Don't link btimec and btimed against libxml2.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -2,7 +2,6 @@ .PHONY: clean clobber uninstall CFLAGS := -Wall -g -I/usr/include/libxml2 -LOADLIBES := -lxml2 COMMON := qarsh_packet.c sockutil.c @@ -10,9 +9,9 @@ TARGETS := qarshd qarsh qacp btimed btimec all: $(TARGETS) -qarshd: qarshd.c $(COMMON) -qarsh: qarsh.c $(COMMON) -qacp: qacp.c $(COMMON) +qarshd: qarshd.c $(COMMON) -lxml2 +qarsh: qarsh.c $(COMMON) -lxml2 +qacp: qacp.c $(COMMON) -lxml2 btimed: btimed.c btimec: btimec.c btime.c @@ -20,8 +19,10 @@ install: all install -D qacp $(INSTROOT)/usr/bin/qacp install -D qarsh $(INSTROOT)/usr/bin/qarsh install -D qarshd $(INSTROOT)/usr/sbin/qarshd + install -D qarsh.xinetd $(INSTROOT)/etc/xinetd.d/qarsh install -D btimed $(INSTROOT)/usr/sbin/btimed install -D btimec $(INSTROOT)/usr/bin/btimec + install -D btimed.xinetd $(INSTROOT)/etc/xinetd.d/btimed clean: $(RM) $(TARGETS) @@ -31,3 +32,7 @@ qarsh.tar.bz2: qarsh.spec rpm: qarsh.tar.bz2 qarsh.spec rpmbuild -ta $< + +# Redefine the default compile rule to include target specific parts +%: %.c + $(LINK.c) $(CFLAGS_$@) $^ $(LIBS_$@) $(LOADLIBES) -o $@ |