aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..afc530a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+IDIR=include
+CFLAGS=-g -Wall -I$(IDIR)
+LIBS=
+
+SRCS=$(wildcard src/*.c) $(wildcard include/*.c)
+OBJS=$(SRCS:.c=.o)
+
+PROG=ctaklm
+
+%.o: %.c
+ cc -c $< -o $@ $(CFLAGS)
+
+$(PROG): $(OBJS)
+ $(CC) $(CFLAGS) $(OBJS) -o $(PROG)
+
+clean:
+ rm -f $(PROG)
+ rm -f $(OBJS)