e91e8ae2fe
+ Tweak Makefile + Add vpnc-disconnect ok okan@ ajacoutot@
19 lines
684 B
Plaintext
19 lines
684 B
Plaintext
$OpenBSD: patch-Makefile,v 1.5 2009/01/29 19:07:06 pea Exp $
|
|
--- Makefile.orig Wed Nov 19 21:36:12 2008
|
|
+++ Makefile Thu Jan 22 13:59:59 2009
|
|
@@ -50,12 +50,9 @@ RELEASE_VERSION := $(shell cat VERSION)
|
|
#OPENSSL_GPL_VIOLATION = -DOPENSSL_GPL_VIOLATION
|
|
#OPENSSLLIBS = -lcrypto
|
|
|
|
-CC=gcc
|
|
-CFLAGS ?= -O3 -g
|
|
-CFLAGS += -W -Wall -Wmissing-declarations -Wwrite-strings
|
|
-CFLAGS += $(shell libgcrypt-config --cflags)
|
|
+CC ?= gcc
|
|
+CFLAGS += -W -Wall '-DVERSION="$(shell cat VERSION)"' $(shell libgcrypt-config --cflags)
|
|
CPPFLAGS += -DVERSION=\"$(VERSION)\" $(OPENSSL_GPL_VIOLATION)
|
|
-LDFLAGS ?= -g
|
|
LDFLAGS += $(shell libgcrypt-config --libs) $(OPENSSLLIBS)
|
|
|
|
ifeq ($(shell uname -s), SunOS)
|