$OpenBSD: patch-Makefile,v 1.4 2006/09/26 12:26:21 kevlo Exp $ --- Makefile.orig Wed Jan 14 16:23:41 2004 +++ Makefile Tue Sep 26 20:19:40 2006 @@ -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 @@ -20,7 +20,7 @@ CPP=g++ # Optimized version -CFLAGS = -c -Wall -O2 -g +CFLAGS += -c # -DSLIST removed because it wouldn't compile under gcc 3.x # add -DHASH_TABLE for extra speed (may sometimes produce inconsistent results) @@ -103,10 +103,11 @@ test-zip: install: - cp jlint antic jlint.sh $(INSTALL_DIR) - chmod 755 $(INSTALL_DIR)/antic - chmod 755 $(INSTALL_DIR)/jlint - chmod 755 $(INSTALL_DIR)/jlint.sh + $(INSTALL_PROGRAM) antic $(PREFIX)/bin + $(INSTALL_PROGRAM) jlint $(PREFIX)/bin + $(INSTALL_PROGRAM) jlint.sh $(PREFIX)/bin + $(INSTALL_DATA_DIR) $(PREFIX)/share/doc/jlint + $(INSTALL_DATA) manual.pdf $(PREFIX)/share/doc/jlint # --> automatically generated dependencies follow; do not remove this line.