blob: b7c1d1b9173465c7fbc3e5f91e79b4bd11928b78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
CC = gcc
CFLAGS = -Wall -Wextra -std=c11 -g -O2 -fwrapv -pthread -D_DEFAULT_SOURCE
LDFLAGS = -pthread
CFLAGS += $(shell pkg-config --cflags libssh)
LDFLAGS += $(shell pkg-config --libs libssh)
.PHONY: all clean
all: server client
clean:
rm -f server *.o
server: server.o ../global.o ../memory.o
$(CC) -o $@ $^ $(LDFLAGS)
client: client.o ../global.o ../memory.o
$(CC) -o $@ $^ $(LDFLAGS)
%.o: %.c $(wildcard *.h)
$(CC) $(CFLAGS) -c -o $@ $<
|