blob: 7c780ff55aaaf4ccaea21dc25b2179f0bbf68895 (
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
46
47
48
49
50
51
|
$NetBSD: patch-ae,v 1.2 2005/02/16 23:20:24 jschauma Exp $
--- src/common/Rmakefile.orig 2004-10-27 19:36:09.000000000 -0400
+++ src/common/Rmakefile 2005-02-16 18:10:50.000000000 -0500
@@ -5,13 +5,12 @@
OPT = -O
MACH = -DBSD
-CFLAGS = $(MACH) $(OPT)
-CC = cc
+CFLAGS += $(MACH) $(OPT)
SPECIAL =
COMPAT = bmalloc.o erf.o strcmp.o # frexp.o fwrite.o random.o
-LIBDIR = /usr/local/lib/ray
+LIBDIR = /src/pkgsrc/graphics/radiance/work.i386/ray/radiance/lib
RTOBJ = cone.o face.o free_os.o instance.o readobj.o readoct.o otypes.o \
objset.o octree.o readfargs.o modobject.o getlibpath.o \
@@ -37,8 +36,8 @@
all: librt.a $(SPECIAL)
librt.a: $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ)
- ar rc librt.a $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ)
- -ranlib librt.a
+ ${AR} rc librt.a $(RTOBJ) $(PICOBJ) $(STDOBJ) $(SYSOBJ)
+ -${RANLIB} librt.a
mv librt.a ../lib/librt.a
install: all
@@ -49,8 +48,8 @@
rm -f *.o librt.a
ogl: $(OGLOBJ)
- ar rc librgl.a $(OGLOBJ)
- -ranlib librgl.a
+ ${AR} rc librgl.a $(OGLOBJ)
+ -${RANLIB} librgl.a
mv librgl.a ../lib/librgl.a
x10:
@@ -62,7 +61,7 @@
sun:
getlibpath.o: getlibpath.c
- $(CC) $(CFLAGS) -DDEFPATH=\":$(LIBDIR)\" -c getlibpath.c
+ $(CC) $(CFLAGS) -DDEFPATH=\":/usr/pkg/radiance/lib\" -c getlibpath.c
tmapcolrs.o: tmapcolrs.c
$(CC) $(CFLAGS) -DPCOND=\"pcond\" -c tmapcolrs.c
|