blob: fd80af9b9c932898a8947d3b35ef84bfeadec5dc [file] [log] [blame]
Willy Tarreau84393aa2016-11-12 11:29:46 +01001CC = gcc
2OPTIMIZE = -O2 -g
3DEFINE =
4INCLUDE =
5OBJS = tcploop
6
Willy Tarreaud5756612022-11-17 08:15:27 +01007V = 0
8Q = @
9ifeq ($V,1)
10Q=
11endif
12
13ifeq ($V,1)
14cmd_CC = $(CC)
15else
16ifeq (3.81,$(firstword $(sort $(MAKE_VERSION) 3.81)))
17# 3.81 or above
18cmd_CC = $(info $ CC $@) $(Q)$(CC)
19else
20# 3.80 or older
21cmd_CC = $(Q)echo " CC $@";$(CC)
22endif
23endif
24
Willy Tarreau84393aa2016-11-12 11:29:46 +010025tcploop: tcploop.c
Willy Tarreaud5756612022-11-17 08:15:27 +010026 $(cmd_CC) $(OPTIMIZE) $(DEFINE) $(INCLUDE) -o $@ $^
Willy Tarreau84393aa2016-11-12 11:29:46 +010027
28clean:
29 rm -f $(OBJS) *.[oas] *~