Respect CC, CXX, CFLAGS.

This commit is contained in:
naddy 2002-09-28 22:30:10 +00:00
parent defe4e7f19
commit 79968cbb18
2 changed files with 27 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.2 2002/03/21 20:57:09 espie Exp $
# $OpenBSD: Makefile,v 1.3 2002/09/28 22:30:10 naddy Exp $
COMMENT= "Java program analyzer and checker"
@ -19,7 +19,8 @@ PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}
MAKE_ENV+= INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
MAKE_ENV+= CC="${CC}" CPP="${CXX}" \
INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
INSTALL_DATA_DIR="${INSTALL_DATA_DIR}" \
INSTALL_DATA="${INSTALL_DATA}"

View File

@ -1,6 +1,27 @@
--- Makefile.orig Thu Jun 28 09:42:55 2001
+++ Makefile Fri Jun 29 10:08:52 2001
@@ -65,10 +65,11 @@
$OpenBSD: patch-Makefile,v 1.2 2002/09/28 22:30:10 naddy Exp $
--- Makefile.orig Wed Aug 8 19:38:28 2001
+++ Makefile Sun Sep 29 00:32:47 2002
@@ -3,8 +3,8 @@
# Makefile for Unix and GNU/Linux with gcc/g++ compiler
# Edit here:
-CC=gcc
-CPP=g++
+#CC=gcc
+CPP?=${CXX}
# Hints:
# if you use egcs-2.90.* version of GCC please add option -fno-exceptions
@@ -18,7 +18,7 @@ CPP=g++
# Optimized version
-CFLAGS = -c -Wall -O2 -g -DSLIST
+CFLAGS += -DSLIST -c
# add -DHASH_TABLE for extra speed (may sometimes produce inconsistent results)
# Optimized version with switched off asserts
@@ -65,10 +65,11 @@ zip:
cd ..; rm -f jlint-$(VERSION).zip; zip -v jlint-$(VERSION).zip $(DISTFILES) `find jlint-$(VERSION)/jlintwin32 | grep -v CVS`
install: