about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 23ba51d..28c5ad9 100644
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,19 @@
+OBJS += cccl.o
+OBJS += main.o
+OBJS += parser.o
+OBJS += readfile.o
+OBJS += tokenizer.o
+
+RM ?= rm -f
+
+
+all: 3cl
+
+3cl: ${OBJS}
+	${CC} ${LDFLAGS} -o 3cl ${OBJS} ${LDLIBS}
+
+clean:
+	${RM} ${OBJS} 3cl
+
 README: README.7
 	mandoc -Tascii README.7 | col -b > README