Initial commit

This commit is contained in:
Kranklyboy
2018-04-16 17:37:31 +02:00
commit 59f2a246b9
3 changed files with 40 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
CC = gcc
CFLAGS = -std=c99 -pedantic -Wall -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_POSIX_C_SOURCE=200809L -g -c
all: server client
server: server.o common.h
$(CC) $^ -o $@
client: client.o common.h
$(CC) $^ -o $@
%.o: %.c
$(CC) $(CFLAGS) $^
.PHONY clean:
rm -f common.h.ghc client.o server.o client server