summaryrefslogtreecommitdiff
path: root/client/Makefile
diff options
context:
space:
mode:
authorJake Mannens <jakem_5@hotmail.com>2019-10-23 21:25:26 +1100
committerJake Mannens <jakem_5@hotmail.com>2019-10-23 21:25:26 +1100
commitaf2339434d35ee2a40eb99af84e8571dc59dfc62 (patch)
tree9faf31f92171145bc70d860360c36fcfd09ffd37 /client/Makefile
Initial commitHEADmaster
Diffstat (limited to 'client/Makefile')
-rw-r--r--client/Makefile23
1 files changed, 23 insertions, 0 deletions
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 $^