16 lines
204 B
Makefile
16 lines
204 B
Makefile
targets = server client
|
|
all: $(targets)
|
|
|
|
server: server.o
|
|
$(CC) -o $@ $^ $(CFLAGS)
|
|
|
|
client: client.o
|
|
$(CC) -o $@ $^ $(CFLAGS)
|
|
|
|
%.o: %.c
|
|
$(CC) -c $^ -o $@ $(CFLAGS)
|
|
|
|
clean:
|
|
rm -f $(targets)
|
|
rm -f *.o
|