Accept environment CFLAGS and LDFLAGS
authorArt Cancro <ajc@citadel.org>
Sat, 29 Oct 2022 19:02:43 +0000 (15:02 -0400)
committerArt Cancro <ajc@citadel.org>
Sat, 29 Oct 2022 19:02:43 +0000 (15:02 -0400)
webcit-ng/Makefile

index cda937007a98555c7e34b80dd9f5e8b0b1a48c3d..7c2980cb2068de03b077442c8fbd1cf7db4e361f 100644 (file)
@@ -1,9 +1,9 @@
-CFLAGS := -ggdb -Wno-format-truncation
-LDFLAGS := 
+CFLAGS := $(CFLAGS) -ggdb -Wno-format-truncation
+LDFLAGS := $(LDFLAGS)
 
 # link
 webcit: server/*.c
-       gcc server/*.c $(LDFLAGS) -lcitadel -lpthread -lcrypto -lssl -lexpat -o webcit
+       gcc $(CFLAGS) server/*.c $(LDFLAGS) -lcitadel -lpthread -lcrypto -lssl -lexpat -o webcit
 
 # remove compilation products
 clean: