diff options
Diffstat (limited to 'lang/stalin/patches')
-rw-r--r-- | lang/stalin/patches/patch-aa | 47 | ||||
-rw-r--r-- | lang/stalin/patches/patch-ae | 9 |
2 files changed, 30 insertions, 26 deletions
diff --git a/lang/stalin/patches/patch-aa b/lang/stalin/patches/patch-aa index f3ab4a46ad5..975f54c584e 100644 --- a/lang/stalin/patches/patch-aa +++ b/lang/stalin/patches/patch-aa @@ -1,35 +1,40 @@ -$NetBSD: patch-aa,v 1.2 2001/01/21 02:04:56 jtb Exp $ +$NetBSD: patch-aa,v 1.3 2001/04/21 01:00:38 jtb Exp $ ---- /dev/null Sun Jan 21 00:09:25 2001 +--- /dev/null Sat Apr 21 01:44:52 2001 +++ Makefile -@@ -0,0 +1,30 @@ -+CFLAGS = -O2 -fomit-frame-pointer -freg-struct-return -+CFLAGS_ALPHA= -O2 -fomit-frame-pointer -+INCLUDES= -I${GC_PREFIX}/include -I${X11BASE}/include -I${MESA_PREFIX}/include -+LDFLAGS = -L${GC_PREFIX}/lib -L${X11BASE}/lib -L${MESA_PREFIX}/lib -+LIBS = -lgc -lm +@@ -0,0 +1,35 @@ ++.if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "sparc64") ++STALIN= stalin-alpha ++.else ++STALIN= stalin-32 ++.endif + -+all-32: stalin-32 libstalin.a ++all: ${STALIN} libstalin.a + -+all-alpha: stalin-alpha libstalin.a ++CPPFLAGS+= -I${GC_PREFIX}/include -I${X11BASE}/include ++ ++.if (${MACHINE_ARCH} != "i386") ++CFLAGS += -O ++.endif ++ ++CFLAGS+= -fomit-frame-pointer ++ ++LDFLAGS+= -Wl,-R${GC_PREFIX}/lib -L${GC_PREFIX}/lib ++LDFLAGS+= -Wl,-R${X11BASE}/lib -L${X11BASE}/lib ++ ++LDLIBS = -lgc -lm + +stalin-32: stalin-32.o -+ $(CC) $(CFLAGS) -o stalin $@.o $(LDFLAGS) $(LIBS) ++ $(CC) -o stalin $? $(LDFLAGS) $(LDLIBS) + +stalin-alpha: stalin-alpha.o -+ $(CC) $(CFLAGS_ALPHA) -o stalin $@.o $(LDFLAGS) $(LIBS) ++ $(CC) -o stalin $? $(LDFLAGS) $(LDLIBS) + +LIBOBJS = xlib-c.o gl-c.o + +libstalin.a: include/xlib-c.o include/gl-c.o -+ $(AR) $(ARFLAGS) $@ $(LIBOBJS) ++ $(AR) cru $@ $(LIBOBJS) + $(RANLIB) $@ + -+stalin-32.o: -+ $(CC) $(CFLAGS) $(INCLUDES) -c stalin-32.c -+ -+stalin-alpha.o: -+ $(CC) $(CFLAGS_ALPHA) $(INCLUDES) -c stalin-alpha.c -+ -+.c.o: -+ $(CC) $(CFLAGS) $(INCLUDES) -c $< ++clean: ++ rm -f ${STALIN} libstalin.a *.o include/*.o diff --git a/lang/stalin/patches/patch-ae b/lang/stalin/patches/patch-ae index 2997c6c07fd..8e7a913ed37 100644 --- a/lang/stalin/patches/patch-ae +++ b/lang/stalin/patches/patch-ae @@ -1,14 +1,13 @@ -$NetBSD: patch-ae,v 1.4 2001/01/21 03:11:55 jtb Exp $ +$NetBSD: patch-ae,v 1.5 2001/04/21 01:00:38 jtb Exp $ ---- /dev/null Sun Jan 21 02:47:21 2001 +--- /dev/null Sat Apr 21 01:48:33 2001 +++ stalinc -@@ -0,0 +1,12 @@ +@@ -0,0 +1,11 @@ +#!/bin/sh + +STALIN_INCLUDES="-I @PREFIX@/lib/stalin -I @PREFIX@/include \ + -I @PREFIX@/lib -I @GC_PREFIX@/include -I @GC_PREFIX@/lib \ -+ -I @X11BASE@/lib -I @X11BASE@/include \ -+ -I @MESA_PREFIX@/lib -I @MESA_PREFIX@/include" ++ -I @X11BASE@/lib -I @X11BASE@/include" + +STALIN_OPTIONS="-Ob -Om -On -Or -Ot -d -d1 -du -dI -k \ + -copt -O2 -copt -fomit-frame-pointer \ |