summaryrefslogtreecommitdiff
path: root/lang/o2c/files/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'lang/o2c/files/patch-aa')
-rw-r--r--lang/o2c/files/patch-aa20
1 files changed, 13 insertions, 7 deletions
diff --git a/lang/o2c/files/patch-aa b/lang/o2c/files/patch-aa
index 24c0732a3dee..f63ba0f5dc4e 100644
--- a/lang/o2c/files/patch-aa
+++ b/lang/o2c/files/patch-aa
@@ -1,6 +1,7 @@
--- Makefile.orig Fri Mar 28 13:15:40 1997
-+++ Makefile Wed Dec 3 17:21:31 1997
-@@ -5,8 +5,7 @@
++++ Makefile Tue Jun 16 14:28:16 1998
+@@ -4,10 +4,9 @@
+ # in "compiler/OMachine.Mod" accordingly.
# where to install the binaries?
-BIN = $(HOME)/bin
@@ -12,17 +13,24 @@
+LIBPATH = ${PREFIX}/lib/o2c-1.16
# you shouldn't have to change anything below
-@@ -29,5 +28,5 @@
+
+@@ -28,7 +27,7 @@
+ fi
-rm -f o2c_stage0 o2c_stage1 o2c_stage2 o2c all
# check the hardcoded type sizes against the C types
- gcc -o sizes system/sizes.c
+ gcc -o sizes system/sizes.c -Isystem
./sizes
# build compiler executable from the distributed C sources
-@@ -63,5 +62,11 @@
+ $(MAKE) -f makefile_o2c CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' build
+@@ -62,26 +61,31 @@
+ ./o2c -MORv --redir system/o2c.red.template UpdateLib
mv o2c o2c_stage2
-install: all
+- if [ ! -f $(HOME)/.o2c.red ]; then \
+- cp system/o2c.red.template $(HOME)/.o2c.red; \
+- fi
+install.man:
+ for i in $(COMMANDS) ; do \
+ cp docs/$$i.1 $(MANPATH)/man1/$$i.1 ; \
@@ -30,9 +38,6 @@
+ done
+
+install: all install.man
- if [ ! -f $(HOME)/.o2c.red ]; then \
- cp system/o2c.red.template $(HOME)/.o2c.red; \
-@@ -69,18 +74,20 @@
chmod -R ugo+rX *
-rm -f o2c
- ln o2c_stage2 o2c
@@ -61,3 +66,4 @@
+ -rm -f sizes
-rm -f o2c_stage0 o2c_stage1 o2c_stage2 o2c all UpdateLib
-rm -rf obj.distrib
+ -for i in $(COMMANDS) UpdateLib ; do rm -f $$i obj/_$$i.[co] ; done