diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2015-04-01 22:43:44 -0300 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2015-04-01 22:43:44 -0300 |
commit | a605c88ba3a0180d5783722c2c877f2ab8b01659 (patch) | |
tree | 3ec8f1712b2549cf596ff4bf595a5b5bc767e29a /Makefile | |
parent | 52913a6131fdc950065d33ec18f75a1bcd329896 (diff) |
Rewritten as a client-server application, similar to urxvt{d,c}.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 45 |
1 files changed, 28 insertions, 17 deletions
@@ -1,33 +1,38 @@ DESTDIR = / PREFIX = usr -INCS = `pkg-config --cflags gtk+-2.0 vte` -LIBS = `pkg-config --libs gtk+-2.0 vte` -CFLAGS = -ansi -pedantic -Wall -O2 ${INCS} +INCS = `pkg-config --cflags gtk+-2.0 gdk-2.0 vte` +LIBS = `pkg-config --libs gtk+-2.0 gdk-2.0 vte` +CFLAGS = -std=c99 -pedantic -Wall -O2 ${INCS} LDFLAGS = -s ${LIBS} -VER = 0.7 +VER = 0.9 CC = cc -SRC = src/T.c +SRC = T.c Tc.c Td.c OBJ = ${SRC:.c=.o} -all: T +all: Tc Td -.c.o: +%.o: %.c @echo CC $< @${CC} -c ${CFLAGS} -o $@ $< -${OBJ}: src/config.h +${OBJ}: config.h T.h -T: ${OBJ} +Tc: T.o Tc.o @echo CC -o $@ - @${CC} -o $@ ${OBJ} ${LDFLAGS} + @${CC} -o $@ $^ ${LDFLAGS} + +Td: T.o Td.o + @echo CC -o $@ + @${CC} -o $@ $^ ${LDFLAGS} clean: @echo cleaning - @rm -f T ${OBJ} T-${VER}.tar.bz2 + @rm -f Tc Td ${OBJ} T-${VER}.tar.bz2 dist: clean + #TODO: remove .desktop file? @echo creating distributable tarball @mkdir T-${VER} @cp -R src/ T.desktop Makefile T-${VER} @@ -35,9 +40,15 @@ dist: clean @rm -rf T-${VER} install: all - @echo installing executable file in ${DESTDIR}${PREFIX}/bin - @install -D -m755 T ${DESTDIR}${PREFIX}/bin/T - @echo installing desktop file in ${DESTDIR}${PREFIX}/share/applications - @install -D -m644 T.desktop ${DESTDIR}${PREFIX}/share/applications/T.desktop - -.PHONY: all clean dist install + @echo installing executable files in ${DESTDIR}${PREFIX}/bin + @install -D -m755 Tc ${DESTDIR}${PREFIX}/bin/Tc + @install -D -m755 Td ${DESTDIR}${PREFIX}/bin/Td + #@echo installing desktop file in ${DESTDIR}${PREFIX}/share/applications + #@install -D -m644 T.desktop ${DESTDIR}${PREFIX}/share/applications/T.desktop + +uninstall: + @echo removing executables files from ${DESTDIR}${PREFIX}/bin + @rm -f ${DESTDIR}${PREFIX}/bin/Tc + @rm -f ${DESTDIR}${PREFIX}/bin/Td + +.PHONY: all clean dist install uninstall |