Move includes to common.h
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user