diff options
author | lonkaars <loek@pipeframe.xyz> | 2021-10-02 15:32:24 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2021-10-02 15:32:24 +0200 |
commit | 868cfb09cdc5b8c19d9d40f4a88ff6bec08c63fc (patch) | |
tree | a5d7d819745b03168c457f299dd086c237b0e9aa /makefile | |
parent | 3b528eeec1e021a431e9d7f7b61bf10723d2d71d (diff) |
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 20 |
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 |