diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..55b6c97 --- /dev/null +++ b/Makefile @@ -0,0 +1,44 @@ + +.PHONY: clean clobber uninstall + +CFLAGS := -Wall -g -I/usr/include/libxml2 +LOADLIBES := -lxml2 + +COMMON := qarsh_packet.c sockutil.c + +all: qarshd qarsh qacp btimed btimec + +qarshd: qarshd.c $(COMMON) +qarsh: qarsh.c $(COMMON) +qacp: qacp.c $(COMMON) +btimed: btimed.c +btimec: btimec.c btime.c + +install: qarsh qarshd + @echo Installing qarsh daemon and client + install -d ${STSDIR}/bin/ + install qacp ${STSDIR}/bin + install qarsh ${STSDIR}/bin + install qarshd ${STSDIR}/bin + + @echo "Installing btime deamon and test client" + @install -d ${STSDIR}/bin/ + @install btimed ${STSDIR}/bin + @install btimec ${STSDIR}/bin + +uninstall: + ${UNINSTALL} qacp ${STSDIR}/bin + ${UNINSTALL} qarsh ${STSDIR}/bin + ${UNINSTALL} qarshd ${STSDIR}/bin + ${UNINSTALL} btimed ${STSDIR}/bin + ${UNINSTALL} btimec ${STSDIR}/bin + +clean: + /bin/rm -f *.o + +clobber: + /bin/rm -f qacp + /bin/rm -f qarsh + /bin/rm -f qarshd + /bin/rm -f btimec + /bin/rm -f btimed |