blob: 1f9d2b93dddb7df160bcea4c968217e65867576a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
$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
|