aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..844cc7b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
1CC = gcc
2CFLAGS = -Wall -g
3OBJS = $(patsubst %.c,%.o,$(wildcard src/*.c))
4OUT = hack.out
5
6$(OUT): $(OBJS)
7 $(CC) $(CFLAGS) -o $@ $(OBJS)
8
9%.o: %.c
10 $(CC) $(CFLAGS) -c $? -o $@
11
12clean:
13 rm -f src/*.o $(OUT)