1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/lang/wamcc/files/patch-aa
Oliver Braun f9bcf6c720 * Upgrade to 2.23.
* Remove BROKEN.

PR:		ports/52922
Submitted by:	Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
2003-06-05 20:35:12 +00:00

74 lines
2.1 KiB
Plaintext

--- Makefile.orig Tue Mar 7 10:21:05 1995
+++ Makefile Wed Jun 4 11:00:59 2003
@@ -5,16 +5,20 @@
# /* Makefile */
# /*-----------------------------------------------------------------------*/
-# you can change the following paths
+PREFIX?= /usr/local
+INCPATH= $(PREFIX)/include/wamcc
+LIBPATH= $(PREFIX)/lib/wamcc
+BINPATH= $(PREFIX)/bin
+DOCPATH= $(PREFIX)/share/doc/wamcc
+EXAMPLEPATH= $(PREFIX)/share/examples/wamcc
+
+PROGRAMS= src/$(COMPILER) src/$(BMF) src/hex2pl src/pl2hex
+SCRIPTS= src/$(WCC)
-ROOTPATH= $(HOME)/$(COMPILER)
-INCPATH = $(ROOTPATH)/include
-LIBPATH = $(ROOTPATH)/lib
-BINPATH = $(ROOTPATH)/bin
# you can specify the name of the C compiler
-CC = gcc
+CC ?= gcc
# do not change anything else
@@ -25,24 +29,28 @@
EXECS = $(WCC) $(COMPILER) $(BMF) hex2pl pl2hex
-install:
- cd src; echo $(ROOTPATH);\
+all:
+ (cd src; \
make $(WCC) COMPILER=$(COMPILER) INCPATH=$(INCPATH) \
- LIBPATH=$(LIBPATH) CC=$(CC) WCC=$(WCC)
- cd Builtin; \
- make COMPILER=$(COMPILER) CC=$(CC) WCC=../src/$(WCC)
- cd src; \
+ LIBPATH=$(LIBPATH) CC=$(CC) WCC=$(WCC))
+ (cd Builtin; \
+ make COMPILER=$(COMPILER) CC=$(CC) WCC=../src/$(WCC))
+ (cd src; \
make COMPILER=$(COMPILER) INCPATH=$(INCPATH) \
- LIBPATH=$(LIBPATH) CC=$(CC) WCC=$(WCC)
- -mkdir -p $(INCPATH)
- -mkdir -p $(LIBPATH)
- -mkdir -p $(BINPATH)
- cp src/*.h $(INCPATH)
- rm $(INCPATH)/wamcc*.h
- cp src/*.a $(LIBPATH)
- ranlib $(LIBPATH)/*.a
- cp src/$(WCC) src/$(COMPILER) src/$(BMF) src/hex2pl src/pl2hex $(BINPATH)
+ LIBPATH=$(LIBPATH) CC=$(CC) WCC=$(WCC))
+install:
+ $(INSTALL) -d $(INCPATH)
+ $(INSTALL) -c -m 444 src/*.h $(INCPATH)
+ $(INSTALL) -d $(LIBPATH)
+ $(INSTALL) -c -m 444 src/*.a $(LIBPATH)
+ $(INSTALL) -d $(DOCPATH)
+ $(INSTALL) -c -m 444 doc/* $(DOCPATH)
+ $(INSTALL) -d $(EXAMPLEPATH)
+ $(INSTALL) -c -m 444 Examples/* $(EXAMPLEPATH)
+ $(INSTALL) -d $(BINPATH)
+ $(INSTALL) -c -m 555 $(SCRIPTS) $(BINPATH)
+ $(INSTALL) -c -s -m 555 $(PROGRAMS) $(BINPATH)
clean:
cd src; make clean