aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-10-02 15:32:24 +0200
committerlonkaars <loek@pipeframe.xyz>2021-10-02 15:32:24 +0200
commit868cfb09cdc5b8c19d9d40f4a88ff6bec08c63fc (patch)
treea5d7d819745b03168c457f299dd086c237b0e9aa /makefile
parent3b528eeec1e021a431e9d7f7b61bf10723d2d71d (diff)
add hello worldHEADmaster
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