aboutsummaryrefslogtreecommitdiff
path: root/devel/cocktail/files/patch-reuse-c-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/cocktail/files/patch-reuse-c-Makefile')
-rw-r--r--devel/cocktail/files/patch-reuse-c-Makefile63
1 files changed, 63 insertions, 0 deletions
diff --git a/devel/cocktail/files/patch-reuse-c-Makefile b/devel/cocktail/files/patch-reuse-c-Makefile
new file mode 100644
index 000000000000..18d1d6a0a811
--- /dev/null
+++ b/devel/cocktail/files/patch-reuse-c-Makefile
@@ -0,0 +1,63 @@
+--- ../../work/cocktail-9309//./reuse/c/Makefile Tue Feb 15 14:26:37 1994
++++ ./reuse/c/Makefile Wed Mar 31 22:35:06 2004
+@@ -1,35 +1,30 @@
+-LIB = $(HOME)/lib
+-INCDIR = $(LIB)/include
+-TARGET = SUN
+-REUSE = libreuse.a
+-OPT = -O
+-UNIX = UNIX
+-CFLAGS = $(OPT) -D$(UNIX) -D$(TARGET)
+-CC = cc
+-OBJS = rSystem.o General.o rMemory.o DynArray.o StringMem.o Idents.o Sets.o Time.o \
+- Errors.o Positions.o Source.o
+
+-# targets
++.include "../../Makefile.inc"
+
+-all: $(TARGET)
++OBJS = rSystem.o General.o rMemory.o DynArray.o StringMem.o Idents.o \
++ Sets.o Time.o Errors.o Positions.o Source.o
+
+-PCS10 PCS20: $(REUSE)
++# targets
+
+-SUN: $(REUSE)
+- ranlib $(REUSE)
++all: $(REUSE)
+
+ $(REUSE): $(OBJS)
+ ar ruc $(REUSE) $(OBJS)
+ -ranlib $(REUSE)
+
+-install: $(TARGET)
+- install -c -m 664 $(REUSE) $(LIB)
+- -ranlib $(LIB)/$(REUSE)
+- cp *.h $(INCDIR)
+- chmod u+w,a+r $(INCDIR)/*.h
++install: $(REUSE)
++ install -c -m 664 $(REUSE) $(DESTLIB)
++ -ranlib $(DESTLIB)/$(REUSE)
++ cp *.h $(DESTINCDIR)
++ chmod u+w,a+r $(DESTINCDIR)/*.h
++
++clean: cleantest
++ -rm -f *.o *Drv core $(REUSE)
++ -rm -f $(REUSE)
++
++cleantest:
++ -rm -f rMemoryDrv DynArrDrv SetsDrv IdentsDrv StrMemDrv ErrorsDrv
+
+-clean:
+- rm -f *.o *Drv core
+
+ # test programs
+
+@@ -73,7 +68,3 @@
+ ErrorsDrv.o: Errors.h Positions.h Sets.h Idents.h
+ Source.o: Source.h rSystem.h
+
+-.SUFFIXES: .c .o
+-
+-.c.o:
+- $(CC) $(CFLAGS) -c $*.c