1 | #!/usr/sbin/make |
---|
2 | |
---|
3 | # |
---|
4 | # Homan Igehy |
---|
5 | # |
---|
6 | # Modified by: Brian Curless |
---|
7 | # |
---|
8 | # Computer Graphics Laboratory |
---|
9 | # Stanford University |
---|
10 | # |
---|
11 | # --------------------------------------------------------------------- |
---|
12 | # |
---|
13 | # Copyright (1997-2001) The Board of Trustees of the Leland Stanford |
---|
14 | # Junior University. Except for commercial resale, lease, license or |
---|
15 | # other commercial transactions, permission is hereby given to use, |
---|
16 | # copy, modify this software for academic purposes only. No part of |
---|
17 | # this software or any derivatives thereof may be used in the |
---|
18 | # production of computer models for resale or for use in a commercial |
---|
19 | # product. STANFORD MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY |
---|
20 | # KIND CONCERNING THIS SOFTWARE. No support is implied or provided. |
---|
21 | # |
---|
22 | |
---|
23 | ifndef OPTIMIZER |
---|
24 | OPTIMIZER = -O |
---|
25 | endif |
---|
26 | |
---|
27 | # Get OS uname |
---|
28 | UNAME := $(shell uname) |
---|
29 | |
---|
30 | ifeq ($(UNAME), IRIX) |
---|
31 | |
---|
32 | # Set optimizer flags to allow it to run on Indys... |
---|
33 | ifeq ($(OPTIMIZER), -O) |
---|
34 | OPTIMIZER = -O -mips3 |
---|
35 | endif #OPTIMIZER |
---|
36 | |
---|
37 | CPP = CC |
---|
38 | |
---|
39 | CCFLAGS = -woff3262 |
---|
40 | |
---|
41 | INCLS = -I. -I$(ROOT)/include |
---|
42 | |
---|
43 | LIBPATHS = -L. -L$(ROOT)/lib |
---|
44 | |
---|
45 | ASFLAGS = -mips2 -O2 |
---|
46 | |
---|
47 | else |
---|
48 | |
---|
49 | # Set special optimizer flags... |
---|
50 | ifeq ($(OPTIMIZER),-O) |
---|
51 | OPTIMIZER = -O6 -march=i686 -malign-double -fno-for-scope \ |
---|
52 | -funroll-loops -fomit-frame-pointer -ffast-math |
---|
53 | endif |
---|
54 | |
---|
55 | CPP = g++ |
---|
56 | |
---|
57 | CCFLAGS = -DLINUX -Wno-unused |
---|
58 | |
---|
59 | INCLS = -I. -I$(ROOT)/include |
---|
60 | |
---|
61 | LIBPATHS = -L. -L$(ROOT)/lib |
---|
62 | |
---|
63 | endif |
---|
64 | |
---|
65 | clean: |
---|
66 | -/bin/rm -f *~ *.o *.s *.S core |
---|
67 | |
---|
68 | clobber: |
---|
69 | -/bin/rm -f *~ *.o *.s *.S makedep core curtest core Makedepend \ |
---|
70 | mon.out libsl.a |
---|
71 | |
---|
72 | install: clobber depend all |
---|
73 | |
---|
74 | depend: |
---|
75 | echo > makedep |
---|
76 | gccmakedep -fmakedep -- $(CFLAGS) -- $(CSRCS) |
---|
77 | -rm makedep.bak |
---|
78 | |
---|
79 | -include makedep |
---|
80 | |
---|
81 | # DO NOT DELETE |
---|
82 | |
---|