diff options
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 $@ |