source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/vrippack-0.31/src/linear/bak/compile-flags-linear @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 2.1 KB
Line 
1
2#  Brian Curless
3
4#  Computer Graphics Laboratory
5#  Stanford University
6
7#  ---------------------------------------------------------------------
8
9#  Copyright (1997-2001) The Board of Trustees of the Leland Stanford Junior
10#  University. Except for commercial resale, lease, license or other
11#  commercial transactions, permission is hereby given to use, copy,
12#  modify this software for academic purposes only.  No part of this
13#  software or any derivatives thereof may be used in the production of
14#  computer models for resale or for use in a commercial
15#  product. STANFORD MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND
16#  CONCERNING THIS SOFTWARE.  No support is implied or provided.
17
18
19ifndef OPTIMIZER
20        OPTIMIZER = -O
21endif
22
23# Get OS uname
24UNAME := $(shell uname)
25
26ifeq ($(UNAME), IRIX)
27
28        # Set optimizer flags to allow it to run on Indys...
29        ifeq ($(OPTIMIZER), -O)
30             OPTIMIZER = -O -mips3
31        endif  #OPTIMIZER
32
33        CC = cc
34        CXX = CC
35
36        CFLAGS = -D_BOOL -woff3262 -woff1174
37        CXXFLAGS = -D_BOOL -woff3262 -woff1174
38
39        INCLS = -I. -I$(ROOT)/include
40
41        LIBPATHS = -L. -L$(ROOT)/lib
42
43else
44
45        # Set special optimizer flags...
46        ifeq ($(OPTIMIZER),-O)
47                OPTIMIZER = -O6 -march=i686 -malign-double \
48                            -funroll-loops -fomit-frame-pointer -ffast-math
49        endif
50
51        CC = gcc
52        CXX = g++
53
54        CFLAGS = -DLINUX -Wall -D_BOOL -Wno-unused \
55                -Wmissing-declarations
56        CXXFLAGS = -DLINUX -Wall -D_BOOL -Wno-unused
57
58        INCLS = -I. -I$(ROOT)/include
59
60        LIBPATHS = -L. -L$(ROOT)/lib
61
62endif
63
64SRCS = $(CXXREGFILES) $(CXXLIBFILES) $(CXXFILES) $(CFILES)
65
66# C++ object files
67CXXOBJS = $(CXXFILES:.cc=.o)
68CXXLIBOBJS = $(CXXLIBFILES:.cc=.o)
69
70COBJS = $(CFILES:.c=.o)
71
72CFLAGS := $(INCLS) -DFUNCPROTO -DHAVE_UNISTD_H $(CFLAGS)
73CXXFLAGS := $(INCLS) -DFUNCPROTO -DHAVE_UNISTD_H $(CXXFLAGS)
74CC := $(CC) $(OPTIMIZER)
75CXX := $(CXX) $(OPTIMIZER)
76
77
78default: all
79
80all: $(TARGETS)
81
82install: clobber depend all
83
84clean:
85        -/bin/rm -f *.o *~ core
86
87clobber:
88        -/bin/rm -f *.o *~ core makedep $(TARGETS)
89
90depend:
91        echo > makedep
92        gccmakedep -fmakedep -- $(CFLAGS) -- $(SRCS)
93        -rm makedep.bak
94
95-include makedep
96
Note: See TracBrowser for help on using the repository browser.