ports/java/jlint/files/patch-Makefile
Ernst de Haan a127113f1b Fixes:
- unbreak with new gcc on -current ('using namespace std')
- CFLAGS/env police
- condense port's Makefile
- install additional shell script
- install documentation (honour NOPORTDOCS)

PR:		48464
Submitted by:	Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
Tested on:	-STABLE, -CURRENT
2003-03-03 21:36:44 +00:00

22 lines
517 B
Text

--- Makefile.orig Wed Feb 19 17:20:06 2003
+++ Makefile Wed Feb 19 17:21:13 2003
@@ -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 @@
# Optimized version
-CFLAGS = -c -Wall -O2 -g -DSLIST
+CFLAGS += -c
# add -DHASH_TABLE for extra speed (may sometimes produce inconsistent results)
# Optimized version with switched off asserts