diff options
Diffstat (limited to 'btime/Makefile')
-rw-r--r-- | btime/Makefile | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/btime/Makefile b/btime/Makefile new file mode 100644 index 0000000..6a2a454 --- /dev/null +++ b/btime/Makefile @@ -0,0 +1,48 @@ +include ../../make/defines.mk + +.PHONY: clean clobber uninstall + +CC = gcc +AR = ar +#CFLAGS += -g + +all: libbtime.a btimed btimec + +btimed: btimed.c btime_int.h + $(CC) $(CFLAGS) -o btimed btimed.c + +btimec: btimec.c libbtime.a + $(CC) $(CFLAGS) -L. -o btimec btimec.c -lbtime + +libbtime.a: btime.c btime_int.h + $(CC) $(CFLAGS) -c btime.c + $(AR) -rc libbtime.a btime.o + +install: btimed btimec libbtime.a + @echo "Installing btime deamon and test client" + @install -d ${STSDIR}/bin/ + @install btimed ${STSDIR}/bin + @install btimec ${STSDIR}/bin + + @echo "Installing btime library" + @install -d ${STSDIR}/lib/ + @install libbtime.a ${STSDIR}/lib + + @echo "Installing btime header" + @install -d ${STSDIR}/include/ + @install btime.h ${STSDIR}/include + + +uninstall: + ${UNINSTALL} btimed ${STSDIR}/bin + ${UNINSTALL} btimec ${STSDIR}/bin + + +clean: + /bin/rm -f *.o + +clobber: + /bin/rm -f btimec + /bin/rm -f btimed + /bin/rm -f *.a *.o + |