blob: 76d23c9b5b7ed6e211a0e4df60c3ca264635e498 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
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 client_proxy
clean:
rm -f server client *.o
server: server.o util.o
$(CC) -o $@ $^ $(LDFLAGS)
client: client.o sshnc.o util.o
$(CC) -o $@ $^ $(LDFLAGS)
client_proxy: client_proxy.o sshnc.o util.o
$(CC) -o $@ $^ $(LDFLAGS)
%.o: %.c $(wildcard *.h)
$(CC) $(CFLAGS) -c -o $@ $<
|