aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..77e2546
--- /dev/null
+++ b/makefile
@@ -0,0 +1,20 @@
+CC = gcc
+LD = gcc
+RM = rm -f
+CFLAGS =
+
+OBJECTS := $(patsubst %.c,%.o, *.c)
+
+all: lincoln
+
+%.o: %.c
+ $(CC) -static -c $< $(CFLAGS)
+
+lincoln: $(OBJECTS)
+ $(CC) $(OBJECTS) $(CFLAGS) -o lincoln
+
+clean:
+ $(RM)
+
+distclean: clean
+ $(RM) *.o