diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2015-07-21 13:38:00 -0300 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2015-07-21 13:38:00 -0300 |
commit | d279b7b38fab20d993bef61991dd77e22a701f49 (patch) | |
tree | d8841c02ec8991810b9c621c08e7ffa75bdad8d8 /Makefile | |
parent | e60b2d69bf6d6a43bc5c2a9386a472ed20281ebf (diff) |
The T client and daemon are now the same program. Added the -d flag to run as daemon.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 7 insertions, 13 deletions
@@ -8,37 +8,31 @@ LDFLAGS = -s ${LIBS} VER = 0.9 CC = cc -SRC = T.c Tc.c Td.c +SRC = T.c OBJ = ${SRC:.c=.o} -all: Tc Td +all: T %.o: %.c @echo CC $< @${CC} -c ${CFLAGS} -o $@ $< -${OBJ}: config.h T.h +${OBJ}: config.h -Tc: T.o Tc.o - @echo CC -o $@ - @${CC} -o $@ $^ ${LDFLAGS} - -Td: T.o Td.o +T: T.o @echo CC -o $@ @${CC} -o $@ $^ ${LDFLAGS} clean: @echo cleaning - @rm -f Tc Td ${OBJ} + @rm -f T ${OBJ} install: all @echo installing executable files in ${DESTDIR}${PREFIX}/bin - @install -D -m755 Tc ${DESTDIR}${PREFIX}/bin/Tc - @install -D -m755 Td ${DESTDIR}${PREFIX}/bin/Td + @install -D -m755 T ${DESTDIR}${PREFIX}/bin/T uninstall: @echo removing executable files from ${DESTDIR}${PREFIX}/bin - @rm -f ${DESTDIR}${PREFIX}/bin/Tc - @rm -f ${DESTDIR}${PREFIX}/bin/Td + @rm -f ${DESTDIR}${PREFIX}/bin/T .PHONY: all clean install uninstall |