Plain Text Paste by Three makefiles
Description: None
Hide line numbers

Create new paste
Post a reply
View replies

Paste:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
57  
58  
59  
60  
61  
62  
63  
64  
65  
66  
67  
68  
69  
70  
71  
72  
73  
74  
75  
76  
77  
78  
79  
80  
81  
82  
83  
84  
85  
86  
87  
88  
89  
90  
91  
92  
93  
94  
95  
96  
97  
98  
99  
100  
101  
102  
103  
104  
105  
106  
107  
108  
109  
110  
111  
112  
113  
114  
115  
116  
117  
118  
119  
120  
121  
122  
123  
124  
125  
126  
127  
128  
129  
130  
131  
132  
133  
134  
135  
136  
137  
138  
139  
140  
141  
142  
143  
144  
145  
146  
147  
148  
149  
150  
151  
152  
153  
154  
155  
156  
157  
158  
159  
160  
161  
162  
163  
164  
165  
166  
167  
168  
169  
170  
171  
172  
173  
174  
175  
176  
177  
178  
179  
180  
181  
182  
183  
184  
185  
186  
187  
188  
189  
190  
191  
192  
193  
194  
195  
196  
197  
198  
199  
200  
201  
202  
203  
204  
205  
206  
207  
208  
209  
210  
211  
212  
213  
214  
215  
216  
217  
218  
219  
220  
221  
222  
223  
224  
225  
226  
227  
228  
229  
230  
231  
232  
233  
234  
235  
236  
237  
238  
239  
240  
241  
242  
243  
244  
245  
246  
247  
248  
249  
250  
251  
252  
253  
The First one is called Imakefile

#
# Copyright (c) 1993-1997, Silicon Graphics, Inc.
# ALL RIGHTS RESERVED
# Permission to use, copy, modify, and distribute this software for
# any purpose and without fee is hereby granted, provided that the above
# copyright notice appear in all copies and that both the copyright notice
# and this permission notice appear in supporting documentation, and that
# the name of Silicon Graphics, Inc. not be used in advertising
# or publicity pertaining to distribution of the software without specific,
# written prior permission.
#
# THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS"
# AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE,
# INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR
# FITNESS FOR A PARTICULAR PURPOSE.  IN NO EVENT SHALL SILICON
# GRAPHICS, INC.  BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT,
# SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY
# KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION,
# LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF
# THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC.  HAS BEEN
# ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON
# ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE
# POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE.
#
# US Government Users Restricted Rights
# Use, duplication, or disclosure by the Government is subject to
# restrictions set forth in FAR 52.227.19(c)(2) or subparagraph
# (c)(1)(ii) of the Rights in Technical Data and Computer Software
# clause at DFARS 252.227-7013 and/or in similar or successor
# clauses in the FAR or the DOD or NASA FAR Supplement.
# Unpublished-- rights reserved under the copyright laws of the
# United States.  Contractor/manufacturer is Silicon Graphics,
# Inc., 2011 N.  Shoreline Blvd., Mountain View, CA 94039-7311.
#
# OpenGL(R) is a registered trademark of Silicon Graphics, Inc.
#

TARGETS = aaindex aapoly aargb accanti accpersp \
    alpha alpha3D bezcurve bezmesh bezsurf \
    checker clip colormat cube dof double \
    drawf feedback fog fogindex font hello \
    image light lines list material mipmap \
    model movelight pickdepth picksquare planet \
    polyoff polys quadric robot scene select \
    smooth stencil stroke surface teapots tess \
    tesswind texbind texgen texprox texsub texturesurf \
    torus trim unproject varray wrap

SRCS = aaindex.c aapoly.c aargb.c accanti.c accpersp.c \
    alpha.c alpha3D.c bezcurve.c bezmesh.c bezsurf.c \
    checker.c clip.c colormat.c cube.c dof.c double.c \
    drawf.c feedback.c fog.c fogindex.c font.c hello.c \
    image.c light.c lines.c list.c material.c mipmap.c \
    model.c movelight.c pickdepth.c picksquare.c planet.c \
    polyoff.c polys.c quadric.c robot.c scene.c select.c \
    smooth.c stencil.c stroke.c surface.c teapots.c tess.c \
    tesswind.c texbind.c texgen.c texprox.c texsub.c texturesurf.c \
    torus.c trim.c unproject.c varray.c wrap.c

#
#  You may need to modify DEP_LIBRARIES and INCLUDES so that
#  GLUT is found.  This example assumes that GLUT is
#  placed two directories above this one.
#

DEP_LIBRARIES = ../../lib/glut/libglut.a

LOCAL_LIBRARIES = $(DEP_LIBRARIES) -lXmu -lXext $(XLIB) -lGL -lGLU

INCLUDES = -I$(TOP) -I../.. -I$(INCLUDEDIR)/GL

AllTarget($(TARGETS))

NormalProgramTarget(aaindex,aaindex.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(aapoly,aapoly.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(aargb,aargb.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(accanti,accanti.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(accpersp,accpersp.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(alpha,alpha.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(alpha3D,alpha3D.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(bezcurve,bezcurve.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(bezmesh,bezmesh.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(bezsurf,bezsurf.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(checker,checker.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(clip,clip.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(colormat,colormat.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(cube,cube.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(dof,dof.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(double,double.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(drawf,drawf.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(feedback,feedback.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(fog,fog.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(fogindex,fogindex.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(font,font.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(hello,hello.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(image,image.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(light,light.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(lines,lines.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(list,list.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(material,material.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(mipmap,mipmap.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(model,model.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(movelight,movelight.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(pickdepth,pickdepth.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(picksquare,picksquare.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(planet,planet.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(polyoff,polyoff.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(polys,polys.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(quadric,quadric.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(robot,robot.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(scene,scene.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(select,select.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(smooth,smooth.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(stencil,stencil.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(stroke,stroke.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(surface,surface.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(teapots,teapots.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(tess,tess.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(tesswind,tesswind.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(texbind,texbind.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(texgen,texgen.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(texprox,texprox.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(texsub,texsub.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(texturesurf,texturesurf.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(torus,torus.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(trim,trim.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(unproject,unproject.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(varray,varray.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)
NormalProgramTarget(wrap,wrap.o,$(DEP_LIBRARIES),$(LOCAL_LIBRARIES),-lm)

DependTarget()
CleanTarget()



The second one is called Makefile


#
# Copyright (c) 1993-1997, Silicon Graphics, Inc.
# ALL RIGHTS RESERVED
# Permission to use, copy, modify, and distribute this software for
# any purpose and without fee is hereby granted, provided that the above
# copyright notice appear in all copies and that both the copyright notice
# and this permission notice appear in supporting documentation, and that
# the name of Silicon Graphics, Inc. not be used in advertising
# or publicity pertaining to distribution of the software without specific,
# written prior permission.
#
# THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS"
# AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE,
# INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR
# FITNESS FOR A PARTICULAR PURPOSE.  IN NO EVENT SHALL SILICON
# GRAPHICS, INC.  BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT,
# SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY
# KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING WITHOUT LIMITATION,
# LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE, OR THE CLAIMS OF
# THIRD PARTIES, WHETHER OR NOT SILICON GRAPHICS, INC.  HAS BEEN
# ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON
# ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE
# POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE.
#
# US Government Users Restricted Rights
# Use, duplication, or disclosure by the Government is subject to
# restrictions set forth in FAR 52.227.19(c)(2) or subparagraph
# (c)(1)(ii) of the Rights in Technical Data and Computer Software
# clause at DFARS 252.227-7013 and/or in similar or successor
# clauses in the FAR or the DOD or NASA FAR Supplement.
# Unpublished-- rights reserved under the copyright laws of the
# United States.  Contractor/manufacturer is Silicon Graphics,
# Inc., 2011 N.  Shoreline Blvd., Mountain View, CA 94039-7311.
#
# OpenGL(R) is a registered trademark of Silicon Graphics, Inc.
#

TARGETS = aaindex aapoly aargb accanti accpersp \
        alpha alpha3D bezcurve bezmesh bezsurf \
        clip colormat cube dof double \
        drawf feedback fog fogindex font hello \
        image light lines list material \
        model movelight pickdepth picksquare planet \
        polys quadric robot scene select \
        smooth stencil stroke surface teapots tess \
        tesswind checker mipmap \
    polyoff texbind texgen texprox texsub varray wrap \
        texturesurf torus trim unproject

#
#  You may need to modify TOP and GLUT so that
#  GLUT is found.  This example assumes that GLUT is
#  placed two directories above this one.
#

TOP = ../..

GLUT = $(TOP)/lib/glut/libglut.a
LLDLIBS = $(GLUT) -lGLU -lGL -lXmu -lXext -lX11 -lm

default: $(TARGETS)

all: default

.c.o:
    cc -c -I/usr/include -I$(TOP) $<

$(TARGETS): $$@.o
    cc $@.o $(LLDLIBS) -o $@

clean:  
    -rm -f *.o $(TARGETS)



The last one is named makefile.win


##
##  Makefile for Windows NT
##


!include <ntwin32.mak>

CFLAGS   = $(cdebug) -DWIN32 -nologo -w
LIBS     = glut.lib glu32.lib opengl32.lib $(guilibs)


EXES     = aaindex.exe aapoly.exe aargb.exe accanti.exe accpersp.exe \
    alpha.exe alpha3d.exe bezcurve.exe bezmesh.exe bezsurf.exe \
    checker.exe clip.exe colormat.exe cube.exe dof.exe double.exe \
    drawf.exe feedback.exe fog.exe fogindex.exe font.exe \
    hello.exe image.exe light.exe lines.exe list.exe \
    material.exe mipmap.exe model.exe movelight.exe \
    pickdepth.exe picksquare.exe planet.exe polyoff.exe \
    polys.exe quadric.exe robot.exe scene.exe select.exe \
    smooth.exe stencil.exe stroke.exe surface.exe teapots.exe \
     tess.exe tesswind.exe texbind.exe texgen.exe texprox.exe \
    texsub.exe texturesurf.exe torus.exe trim.exe unproject.exe \
    varray.exe wrap.exe


all             : $(EXES)


.c.exe:
    $(CC) $(CFLAGS) -c $<
        $(link) $(linkdebug) -nologo -out:$@ $*.obj $(LIBS)

clean:
        rm -f *.exe *.obj *.pdb

Replies:
No replies posted yet