]> Nishi Git Mirror - libw3.git/commitdiff
debug
authornishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Wed, 17 Jan 2024 08:31:53 +0000 (08:31 +0000)
committernishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Wed, 17 Jan 2024 08:31:53 +0000 (08:31 +0000)
git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@11 d27a3e52-49c5-7645-884c-6793ebffc270

Makefile

index f060b86a7deded17e76ab92a8519a10381dc6434..b1b18b5b6c0c403c5e8ea18297b2eb3a98307174 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
 include config.mk
 
 CC := cc
-CFLAGS := -g -std=c99 -fPIC -D_BSD_SOURCE $(DEBUG)
+CFLAGS := -g -std=c99 -fPIC -D_BSD_SOURCE
 LDFLAGS :=
 LIBS :=
 PREFIX := /usr/local
@@ -12,6 +12,10 @@ CFLAGS += -DSSL_SUPPORT
 LIBS += -lssl -lcrypto
 endif
 
+ifdef DEBUG
+CFLAGS += -g -D__DEBUG__
+endif
+
 .PHONY: all clean ./Library/libw3.so ./Example/fetch
 
 all: ./w3.pc ./Library/libw3.so ./Example/fetch