From: nishi Date: Wed, 17 Jan 2024 08:31:53 +0000 (+0000) Subject: debug X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=ff4bd31d17b4bdbe39707dc639cefee4a2aff828;p=libw3.git debug git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@11 d27a3e52-49c5-7645-884c-6793ebffc270 --- diff --git a/Makefile b/Makefile index f060b86..b1b18b5 100644 --- 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