This commit is contained in:
Christoph Grabo 2014-07-03 04:26:16 +00:00
commit 546bb66a9c
1 changed files with 16 additions and 3 deletions

View File

@ -1,5 +1,18 @@
CC?=gcc
O_LVL?=3
all:
gcc -O2 -o server server.c
gcc -O2 -o client client.c
CFLAGS=-O$(O_LVL)
BINARIES= \
server \
client
all: $(BINARIES)
$(BINARIES): %: %.c
$(CC) $(CFLAGS) $@.c -o $@
clean:
rm $(BINARIES)
.PHONY: all clean