From af2339434d35ee2a40eb99af84e8571dc59dfc62 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Wed, 23 Oct 2019 21:25:26 +1100 Subject: Initial commit --- client/Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 client/Makefile (limited to 'client/Makefile') diff --git a/client/Makefile b/client/Makefile new file mode 100644 index 0000000..f2b6ca3 --- /dev/null +++ b/client/Makefile @@ -0,0 +1,23 @@ +TARGET = $(shell basename $(CURDIR)) + +SRCS = $(wildcard *.c) +OBJS = $(SRCS:.c=.o) + +CC = gcc + +all: build + +build: $(TARGET) + +clean: + rm -f $(OBJS) + rm -f $(TARGET) + +run: $(TARGET) + $(realpath $(TARGET)) + +$(TARGET): $(OBJS) + $(CC) -o $(TARGET) $(OBJS) + +.c.o: + $(CC) -c -o $*.o $^ -- cgit v1.3