BUILD: makefile: integrate the hpack tools

The few hpack development tools are now integrated into the main
makefile, which allows to remove the original one which was causing
lots of build warnings. A README was added to explain how to build
instead.
This commit is contained in:
Willy Tarreau 2021-04-02 14:27:26 +02:00
parent 339eb0b002
commit 21ef8b9064
4 changed files with 9 additions and 10 deletions

View File

@ -21,4 +21,4 @@ jobs:
make dev/poll/poll
- name: Compile dev/hpack
run: |
make -C dev/hpack
make dev/hpack/decode dev/hpack/gen-enc dev/hpack/gen-rht

View File

@ -932,6 +932,9 @@ contrib/halog/halog:
dev/flags/flags: dev/flags/flags.o
$(cmd_LD) $(LDFLAGS) -o $@ $^ $(LDOPTS)
dev/hpack/%: dev/hpack/%.o
$(cmd_LD) $(LDFLAGS) -o $@ $^ $(LDOPTS)
dev/poll/poll:
$(Q)$(MAKE) -C dev/poll poll CC='$(cmd_CC)' OPTIMIZE='$(COPTS)'
@ -996,6 +999,7 @@ clean:
$(Q)rm -f haproxy-$(VERSION) haproxy-$(VERSION)$(SUBVERS)$(EXTRAVERSION) nohup.out gmon.out
$(Q)rm -f {dev,contrib}/*/*.[oas] {dev,contrib}/*/*/*.[oas] {dev,contrib}/*/*/*/*.[oas]
$(Q)rm -f contrib/halog/halog dev/flags/flags dev/poll/poll dev/tcploop/tcploop
$(Q)rm -f dev/hpack/decode dev/hpack/gen-enc dev/hpack/gen-rht
tags:
$(Q)find src include \( -name '*.c' -o -name '*.h' \) -print0 | \

View File

@ -1,9 +0,0 @@
CFLAGS = -O2 -Wall -g -I../../include -fwrapv -fno-strict-aliasing
OBJS = gen-rht gen-enc decode
all: $(OBJS)
%: %.c
clean:
-rm -vf $(OBJS) *.o *.a *~

4
dev/hpack/README Normal file
View File

@ -0,0 +1,4 @@
This needs to be built from the top makefile, for example :
make dev/hpack/{decode,gen-enc,gen-rht}