openbsd-ports/java/jlint/patches/patch-Makefile

68 lines
2.0 KiB
Plaintext
Raw Normal View History

$OpenBSD: patch-Makefile,v 1.5 2009/03/26 18:06:01 naddy Exp $
--- Makefile.orig Wed Jan 14 17:23:41 2004
+++ Makefile Thu Mar 26 19:02:54 2009
2002-09-28 18:30:10 -04:00
@@ -3,8 +3,8 @@
# Makefile for Unix and GNU/Linux with gcc/g++ compiler
# Edit here:
-CC=gcc
-CPP=g++
+#CC=gcc
2006-09-26 08:26:21 -04:00
+CPP=${CXX}
2002-09-28 18:30:10 -04:00
# Hints:
# if you use egcs-2.90.* version of GCC please add option -fno-exceptions
2006-09-26 08:26:21 -04:00
@@ -20,7 +20,7 @@ CPP=g++
2002-09-28 18:30:10 -04:00
# Optimized version
2006-09-26 08:26:21 -04:00
-CFLAGS = -c -Wall -O2 -g
+CFLAGS += -c
2006-09-26 08:26:21 -04:00
# -DSLIST removed because it wouldn't compile under gcc 3.x
2002-09-28 18:30:10 -04:00
# add -DHASH_TABLE for extra speed (may sometimes produce inconsistent results)
@@ -28,7 +28,8 @@ CFLAGS = -c -Wall -O2 -g
#CFLAGS = -c -Wall -O2 -g -DSLIST -DNDEBUG
# link zlib the compression/decompression library. used for decompressing jar files
-LFLAGS=-g -lz
+LFLAGS=-g
+LIBS=-lz
# Directory to place executables
INSTALL_DIR=/usr/local/bin
@@ -52,7 +53,7 @@ antic.o: antic.c
$(CC) $(CFLAGS) antic.c
antic: antic.o
- $(CC) $(LFLAGS) -o antic antic.o
+ $(CC) $(LFLAGS) -o antic antic.o $(LIBS)
clean:
rm -f *.o *.exe core *~ *.his *.class jlint antic manual.{html,pdf,aux,cp,fn,ky,log,pg,toc,tp,vr} jlint_3.0.{aux,dvi,log,toc}
@@ -103,10 +104,11 @@ test-zip:
2006-09-26 08:26:21 -04:00
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
2006-09-26 08:26:21 -04:00
+ $(INSTALL_PROGRAM) jlint.sh $(PREFIX)/bin
+ $(INSTALL_DATA_DIR) $(PREFIX)/share/doc/jlint
2006-09-26 08:26:21 -04:00
+ $(INSTALL_DATA) manual.pdf $(PREFIX)/share/doc/jlint
# --> automatically generated dependencies follow; do not remove this line.
@@ -120,7 +122,7 @@ jlint: \
locks.o \
message_node.o \
method_desc.o
- $(CPP) $(LFLAGS) -o jlint access_desc.o callee_desc.o class_desc.o graph.o jlint.o local_context.o locks.o message_node.o method_desc.o
+ $(CPP) $(LFLAGS) -o jlint access_desc.o callee_desc.o class_desc.o graph.o jlint.o local_context.o locks.o message_node.o method_desc.o $(LIBS)
access_desc.o: access_desc.cc \
access_desc.hh \