tttm

git clone https://orangeshoelaces.net/git/tttm.git

347b7d07e3bc1c5f3c9df39fe0b0bf93b1af0dbc

Author: Vasily Kolobkov on 05/21/2016

Committer: Vasily Kolobkov on 05/21/2016

Add makefile

Stats

Makefile | 33 ++++++++
1 file changed, 33 insertions(+)

Patch

diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..0dbb4b9
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,33 @@
+.SUFFIXES: .c .o
+
+.c.o:
+	${CC} ${CFLAGS} -c $<
+
+PSHADESSRC = pshades.c errors.c laxsrc.c parser.c
+PSHADESOBJ = ${PSHADESSRC:.c=.o}
+
+TTTMSRC = tttm.c errors.c laxsrc.c parser.c imap.c
+TTTMOBJ = ${TTTMSRC:.c=.o}
+
+all: tttm pshades
+
+tttm: ${TTTMOBJ}
+	${CC} ${CFLAGS} -o $@ ${TTTMOBJ}
+
+pshades: ${PSHADESOBJ}
+	${CC} ${CFLAGS} -o $@ ${PSHADESOBJ}
+
+clean:
+	rm -f tttm pshades ${TTTMOBJ} ${PSHADESOBJ}
+
+errors.o: errors.c errors.h
+
+laxsrc.o: laxsrc.c errors.h laxsrc.h
+
+parser.o: parser.c errors.h laxsrc.h parser.h
+
+imap.o: imap.c errors.h laxsrc.h parser.h imap.h
+
+pshades.o: pshades.c errors.h laxsrc.h parser.h
+
+tttm.o: tttm.c errors.h laxsrc.h parser.h imap.h