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

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

Added original make3d

File size: 1.9 KB
Line 
1
2#  Brian Curless
3
4#  Computer Graphics Laboratory
5#  Stanford University
6
7#  ---------------------------------------------------------------------
8
9#  Copyright (1997) 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 = -woff3262 -woff1174 -woff1356
37        CXXFLAGS = -woff3262 -woff1174 -woff1356
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 -Wno-unused
55        CXXFLAGS = -DLINUX -Wall -Wno-unused
56
57        INCLS = -I. -I$(ROOT)/include
58
59        LIBPATHS = -L. -L$(ROOT)/lib
60
61endif
62
63
64CFLAGS := $(INCLS) -DFUNCPROTO -DHAVE_UNISTD_H $(CFLAGS)
65CXXFLAGS := $(INCLS) -DFUNCPROTO -DHAVE_UNISTD_H $(CXXFLAGS)
66CC := $(CC) $(OPTIMIZER)
67CXX := $(CXX) $(OPTIMIZER)
68
69SRCS = $(CXXSRCS) $(CSRCS)
70
71OBJS = $(CXXSRCS:.cc=.o) $(CSRCS:.c=.o)
72
73default: all
74
75all: $(TARGETS)
76
77install: clobber depend all
78
79clean:
80        -/bin/rm -f *.o *~ core
81
82clobber:
83        -/bin/rm -f *.o *~ core makedep $(TARGETS)
84
85depend:
86        echo > makedep
87        gccmakedep -fmakedep -- $(CFLAGS) -- $(SRCS)
88        rm makedep.bak
89
90-include makedep
91
Note: See TracBrowser for help on using the repository browser.