Move includes to common.h

This commit is contained in:
Kranklyboy
2018-04-15 19:18:37 +02:00
parent 234ea6130f
commit 49c0d80832
4 changed files with 19 additions and 40 deletions
+3 -3
View File
@@ -3,13 +3,13 @@ CFLAGS = -std=c99 -pedantic -Wall -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE
all: server client
server: server.o
server: server.o common.h
$(CC) $^ -o $@
client: client.o
client: client.o common.h
$(CC) $^ -o $@
%.o: %.c common.h
%.o: %.c
$(CC) $(CFLAGS) $^
.PHONY clean: