]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CONTRIB: debug: split poll from flags
authorWilly Tarreau <w@1wt.eu>
Fri, 2 Apr 2021 11:43:49 +0000 (13:43 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 2 Apr 2021 15:48:42 +0000 (17:48 +0200)
Now poll is its own project and doesn't share the "flags" Makefile
any more. One of the issues was that it was making references to the
haproxy include path which is not needed here.

.github/workflows/contrib.yml
.gitignore
Makefile
contrib/debug/Makefile
contrib/poll/Makefile [new file with mode: 0644]
contrib/poll/poll.c [moved from contrib/debug/poll.c with 100% similarity]

index 39556e123715db21465a4432bcc3cdca30f2099f..4b88938e8a327ba4b7765b78fdb8edc2dfb0a21a 100644 (file)
@@ -16,9 +16,9 @@ jobs:
     - name: Compile contrib/debug/flags
       run: |
         make contrib/debug/flags
-    - name: Compile contrib/debug/poll
+    - name: Compile contrib/poll/poll
       run: |
-        make contrib/debug/poll
+        make contrib/poll/poll
     - name: Compile contrib/hpack
       run: |
         make -C contrib/hpack
index f77751a6dbdbcdc113904d32da5da5df5eb45577..fdbc66af9cbc7eec241c2f4500219feecc5f122e 100644 (file)
@@ -44,6 +44,7 @@
 /contrib/systemd/haproxy.service
 /contrib/spoa_example/spoa
 contrib/debug/flags
+contrib/poll/poll
 contrib/mod_defender/defender
 contrib/modsecurity/modsecurity
 contrib/hpack/decode
index 2ff6cd38bca08ea108a0c3913c59292e8bfbd9ac..fc62b133fa540cdf022c98e01626569804097f1a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -995,7 +995,7 @@ clean:
        $(Q)rm -f haproxy-$(VERSION).tar.gz haproxy-$(VERSION)$(SUBVERS)$(EXTRAVERSION).tar.gz
        $(Q)rm -f haproxy-$(VERSION) haproxy-$(VERSION)$(SUBVERS)$(EXTRAVERSION) nohup.out gmon.out
        $(Q)rm -f contrib/*/*.[oas] contrib/*/*/*.[oas] contrib/*/*/*/*.[oas]
-       $(Q)rm -f contrib/halog/halog contrib/debug/flags contrib/debug/poll contrib/tcploop/tcploop
+       $(Q)rm -f contrib/halog/halog contrib/debug/flags contrib/poll/poll contrib/tcploop/tcploop
 
 tags:
        $(Q)find src include \( -name '*.c' -o -name '*.h' \) -print0 | \
index 74dd6ac713e86ffd2e84c9745dddafa9f437f574..9171eaf4c4974de4eda9f0dbfaec931ffd183477 100644 (file)
@@ -3,15 +3,12 @@ INCLUDE  = -I../../include
 CC       = gcc
 OPTIMIZE = -O2
 DEFINE   =
-OBJS     = flags poll
+OBJS     = flags
 
 all: $(OBJS)
 
 flags: flags.c
        $(CC) $(OPTIMIZE) $(DEFINE) $(INCLUDE) -o $@ $^
 
-poll: poll.c
-       $(CC) $(OPTIMIZE) $(DEFINE) $(INCLUDE) -o $@ $^
-
 clean:
        rm -f $(OBJS) *.[oas] *~
diff --git a/contrib/poll/Makefile b/contrib/poll/Makefile
new file mode 100644 (file)
index 0000000..fdee514
--- /dev/null
@@ -0,0 +1,11 @@
+CC       = cc
+OPTIMIZE = -O2 -g
+DEFINE   =
+INCLUDE  =
+OBJS     = poll
+
+poll: poll.c
+       $(CC) $(OPTIMIZE) $(DEFINE) $(INCLUDE) -o $@ $^
+
+clean:
+       rm -f $(OBJS) *.[oas] *~
similarity index 100%
rename from contrib/debug/poll.c
rename to contrib/poll/poll.c