Willy Tarreau | 84393aa | 2016-11-12 11:29:46 +0100 | [diff] [blame] | 1 | CC = gcc |
| 2 | OPTIMIZE = -O2 -g |
| 3 | DEFINE = |
| 4 | INCLUDE = |
| 5 | OBJS = tcploop |
| 6 | |
Willy Tarreau | d575661 | 2022-11-17 08:15:27 +0100 | [diff] [blame^] | 7 | V = 0 |
| 8 | Q = @ |
| 9 | ifeq ($V,1) |
| 10 | Q= |
| 11 | endif |
| 12 | |
| 13 | ifeq ($V,1) |
| 14 | cmd_CC = $(CC) |
| 15 | else |
| 16 | ifeq (3.81,$(firstword $(sort $(MAKE_VERSION) 3.81))) |
| 17 | # 3.81 or above |
| 18 | cmd_CC = $(info $ CC $@) $(Q)$(CC) |
| 19 | else |
| 20 | # 3.80 or older |
| 21 | cmd_CC = $(Q)echo " CC $@";$(CC) |
| 22 | endif |
| 23 | endif |
| 24 | |
Willy Tarreau | 84393aa | 2016-11-12 11:29:46 +0100 | [diff] [blame] | 25 | tcploop: tcploop.c |
Willy Tarreau | d575661 | 2022-11-17 08:15:27 +0100 | [diff] [blame^] | 26 | $(cmd_CC) $(OPTIMIZE) $(DEFINE) $(INCLUDE) -o $@ $^ |
Willy Tarreau | 84393aa | 2016-11-12 11:29:46 +0100 | [diff] [blame] | 27 | |
| 28 | clean: |
| 29 | rm -f $(OBJS) *.[oas] *~ |