summaryrefslogtreecommitdiff
path: root/client/makefile
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-05-24 22:06:09 +0200
committerlonkaars <loek@pipeframe.xyz>2022-05-24 22:06:09 +0200
commitb0a905b14ff90f2240e5aa2928d5329d8494cb46 (patch)
tree51c488dc72f0ba50b666d57eea6a23f8c8a731b7 /client/makefile
parent937a3a736aaf2c468c8c8e8dbc7963a87eae890f (diff)
fix `make clean`
Diffstat (limited to 'client/makefile')
-rw-r--r--client/makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/makefile b/client/makefile
index 2209c95..8bc8ac7 100644
--- a/client/makefile
+++ b/client/makefile
@@ -4,20 +4,20 @@ RM = rm -f
CFLAGS =
EXECNAME = main
+all: $(EXECNAME)
+
SOURCES := $(wildcard *.c)
HEADERS := $(wildcard *.h)
include ../shared/makefile
OBJECTS := $(patsubst %.c,%.o, $(SOURCES))
-all: main
-
.o:
$(CC) -c $(CFLAGS) $<
$(EXECNAME): $(OBJECTS)
$(CC) $(OBJECTS) -o $(EXECNAME)
-clean:
+clean::
$(RM) $(EXECNAME) *.o
format: