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

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

Added original make3d

File size: 1.7 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
19# PLY polygon file routines
20
21
22ifndef OPTIMIZER
23        OPTIMIZER = -O
24endif
25
26
27# Get OS uname
28UNAME := $(shell uname)
29
30ifeq ($(UNAME), IRIX)
31
32        # Set optimizer flags to allow it to run on Indys...
33
34        ifeq ($(OPTIMIZER), -O)
35            OPTIMIZER = -O -mips3
36        endif  #OPTIMIZER
37
38        CC = cc
39        CXX = CC
40
41        CFLAGS = -woff3262 -woff1174
42        CXXFLAGS = -woff3262 -woff1174
43
44        INCLS = -I.
45
46        LIBPATHS = -L.
47
48else
49
50        # Set special optimizer flags...
51        ifeq ($(OPTIMIZER),-O)
52                OPTIMIZER = -O6 -march=i686 -malign-double \
53                            -funroll-loops -fomit-frame-pointer -ffast-math
54        endif
55
56        CC = gcc
57        CXX = g++
58
59        CFLAGS = -DLINUX -Wno-unused
60        CXXFLAGS = -DLINUX -Wno-unused
61
62        INCLS = -I.
63
64        LIBPATHS = -L.
65
66endif
67
68CFLAGS := $(INCLS) -DFUNCPROTO -DHAVE_UNISTD_H $(CFLAGS)
69CC := $(CC) $(OPTIMIZER)
70CXX := $(CXX) $(OPTIMIZER)
71default: all
72
73all: $(TARGETS)
74
75install: clobber depend all
76
77clean:
78        -/bin/rm -f *~ *.o core
79
80clobber:
81        -/bin/rm -f *~ *.o core makedep $(TARGETS)
82
83depend:
84        echo > makedep
85        gccmakedep -fmakedep -- $(CFLAGS) -- $(CSRCS)
86        rm makedep.bak
87
88-include makedep
Note: See TracBrowser for help on using the repository browser.