diff options
author | Nate Straz <nstraz@redhat.com> | 2005-09-13 15:48:30 +0000 |
---|---|---|
committer | Nathan Straz <nstraz@redhat.com> | 2008-09-23 09:37:44 -0400 |
commit | c38e0fba0a10d5af0bb25f674177cb6404f73991 (patch) | |
tree | 9e77bcfd7b48187972a951f9cd1a08351d7f01bf /btime/Makefile | |
parent | 89f8670f4e60cfafbb153bef681b6ada593ea626 (diff) | |
download | qarsh-c38e0fba0a10d5af0bb25f674177cb6404f73991.tar.gz qarsh-c38e0fba0a10d5af0bb25f674177cb6404f73991.tar.xz qarsh-c38e0fba0a10d5af0bb25f674177cb6404f73991.zip |
Copy btime and qarsh over from sistina-test tree
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 + |