From 868cfb09cdc5b8c19d9d40f4a88ff6bec08c63fc Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sat, 2 Oct 2021 15:32:24 +0200 Subject: add hello world --- makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 makefile (limited to 'makefile') 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 -- cgit v1.2.3