7e23d60ee4
for Mips and SPARC.
45 lines
990 B
Text
45 lines
990 B
Text
$NetBSD: patch-aa,v 1.4 2001/06/25 17:49:33 jtb Exp $
|
|
|
|
--- /dev/null Mon Jun 25 10:07:21 2001
|
|
+++ Makefile
|
|
@@ -0,0 +1,40 @@
|
|
+.if (${MACHINE_ARCH} == "alpha")
|
|
+STALIN = stalin-alpha
|
|
+.elif (${MACHINE_ARCH} == "i386")
|
|
+STALIN = stalin-ia32
|
|
+.elif (${MACHINE_ARCH} == "mips")
|
|
+STALIN = stalin-mips
|
|
+.elif (${MACHINE_ARCH} == "sparc")
|
|
+STALIN = stalin-sparc
|
|
+.endif
|
|
+
|
|
+all: ${STALIN} libstalin.a
|
|
+
|
|
+CPPFLAGS += -I${LOCALBASE}/include -I${X11BASE}/include
|
|
+
|
|
+CFLAGS += -fomit-frame-pointer
|
|
+
|
|
+LDFLAGS += -Wl,-R${LOCALBASE}/lib -L${LOCALBASE}/lib
|
|
+
|
|
+LDLIBS = -lgc -lm
|
|
+
|
|
+stalin-alpha: stalin-alpha.o
|
|
+ $(CC) -o stalin $? $(LDFLAGS) $(LDLIBS)
|
|
+
|
|
+stalin-ia32: stalin-ia32.o
|
|
+ $(CC) -o stalin $? $(LDFLAGS) $(LDLIBS)
|
|
+
|
|
+stalin-mips: stalin-mips.o
|
|
+ $(CC) -o stalin $? $(LDFLAGS) $(LDLIBS)
|
|
+
|
|
+stalin-sparc: stalin-sparc.o
|
|
+ $(CC) -o stalin $? $(LDFLAGS) $(LDLIBS)
|
|
+
|
|
+libstalin.a: xlib-c.o gl-c.o
|
|
+ $(AR) cru $@ $?
|
|
+ $(RANLIB) $@
|
|
+
|
|
+clean:
|
|
+ rm -f stalin libstalin.a *.o
|
|
+
|
|
+.PATH: ${.CURDIR}/include
|