summaryrefslogtreecommitdiffstats
path: root/rob/Makefile
blob: 81ebb5e11b3a51df11596b6bcaf3165e3423aa7a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

CFLAGS_W	= -Wall -Wextra -Werror -Wno-implicit-fallthrough
CFLAGS_O	= -O3 -march=native -flto -fuse-linker-plugin -static
CFLAGS		= $(CFLAGS_W) $(CFLAGS_O)

.PHONY: all
all: rob

rob: rob.c
	gcc $(CFLAGS) 							\
			`pkg-config --static --cflags libalx-base`	\
			`pkg-config --static --cflags libalx-telnet-tcp`\
			`pkg-config --static --cflags libalx-robot`	\
			$< -o $@					\
			`pkg-config --static --libs libalx-robot`	\
			`pkg-config --static --libs libalx-telnet-tcp`	\
			`pkg-config --static --libs libalx-base`

clean:
	rm -f rob