~aritra1911/openssl_madness

dfde0d947c1c61b3c861cc92202fb09070885eca — Aritra Sarkar 2 years ago 221681f
Improve Makefile
1 files changed, 6 insertions(+), 8 deletions(-)

M Makefile
M Makefile => Makefile +6 -8
@@ 1,17 1,15 @@
CFLAGS = -Wall -Wextra -pedantic -std=c99
CPPFLAGS = -DPURIFY
LIBS = -lcrypto
LDFLAGS = $(LIBS)

ifdef OPENSSLDIR
	CFLAGS += -I$(OPENSSLDIR)/include
	LDFLAGS += -L$(OPENSSLDIR)/lib -L$(OPENSSLDIR)/lib64 \
		   -Wl,--enable-new-dtags,-rpath,$(OPENSSLDIR)/lib \
		   -Wl,--enable-new-dtags,-rpath,$(OPENSSLDIR)/lib64
	LDFLAGS += -L$(OPENSSLDIR)/lib \
		-Wl,--enable-new-dtags,-rpath,$(OPENSSLDIR)/lib
endif

CFLAGS += -Wall -Wextra -pedantic -std=c99
CPPFLAGS += -DPURIFY
LDFLAGS += $(LIBS)

ifneq ($(strip $(DEBUG)),)
ifneq ($(strip $(DEBUG)),0)
	CFLAGS += -g -O0
endif