diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7c005c9 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +CC ?= gcc + +.PHONY: all +all: client server + +.PHONY: clean +clean: + rm -rf client server + +%.o: %.c + $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@ + +client: client.o + $(CC) -o $@ $< + +server: server.o + $(CC) -o $@ $< |