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