Sophie

Sophie

distrib > Mandriva > 2007.0 > i586 > media > contrib-release > by-pkgid > 8079d983ecf371717db799dd75bd56c2 > files > 89

libopenrm1-1.5.2-2mdv2007.0.i586.rpm

#
# $Id: Makefile.w32,v 1.18 2004/03/10 02:12:34 wes Exp $
# $Name: OpenRM-1-5-2-RC1 $
# $Revision: 1.18 $
# $Log: Makefile.w32,v $
# Revision 1.18  2004/03/10 02:12:34  wes
# Beautification
#
# Revision 1.17  2004/02/23 02:55:42  wes
# Added build targets for indexedPrims2D.
#
# Revision 1.16  2004/01/19 17:08:25  wes
# Added build targets for textureTest and spriteTest.
#
# Revision 1.15  2003/12/11 22:44:05  wes
# fpsVis3d.exe build target.
#
# Revision 1.14  2003/12/01 02:17:10  wes
# Add build target for fpsVis3d.
#
# Revision 1.13  2003/11/05 15:04:54  wes
# Updated lib pointer from rm150 to rm151.
#
# Revision 1.12  2003/02/17 17:32:13  wes
# Updated root from rm143 to rm150
#
# Revision 1.11  2002/08/19 00:22:49  wes
# Major overhaul of win32 makefile. Removed a bunch of unused cruft.
#
# Revision 1.10  2002/06/17 00:33:41  wes
# Added pickTest.exe and pickListTest.exe targets, fixed keyfunc.exe target.
#
# Revision 1.9  2001/10/15 00:21:51  wes
# Added imgMirror and fogtest demos. Minor Win32 adjustments to
# reflect the reorganization of the pthreads-win32 distribution
# organization.
#
# Revision 1.8  2001/06/03 20:15:46  wes
# Added -lrmi, JPEG stuff.
#
# Revision 1.7  2001/03/31 18:48:12  wes
# Minor tweaks to build flags. Added rules for offscreen, clrball, elev-2vu.
#
# Revision 1.6  2001/03/31 16:55:18  wes
# Added procmode.h, which defines an RMpipe processing mode used in
# most demonstration programs. The default processing mode is
# RM_PIPE_MULTISTAGE_VIEW_PARALLEL.
#
# Revision 1.5  2000/12/03 23:51:53  wes
# Change to use RM version 1.4.0
#
# Revision 1.4  2000/12/02 17:24:32  wes
# Version 1.4.0-alpha-1 checkin. See the RELEASENOTES file for
# a summary of changes. With this checkin, these demo programs
# are no longer compatible with versions of the OpenRM API that
# are pre-1.4.0.
#
# Revision 1.3  2000/08/31 02:59:19  wes
# Added clipper to $PROGS.
#
# Revision 1.2  2000/04/20 18:04:14  wes
# added lines2d.c to build
#
# Revision 1.1.1.1  2000/02/28 21:55:30  wes
# OpenRM 1.2 Release
#
# Revision 1.8  2000/02/28 17:21:54  wes
# RM 1.2, pre-OpenRM
#
#

#
# You may need to change the items labelled (1), (2), (3), and (4) in
# this Makefile to reflect the location of stuff on your machine.
#
# (1) where is your msvc++ compiler & headers installed? 
# update the line containing MSROOT for your environment:

# 8/18/02 - this doesn't seem to be needed, and is being removed.
# MSLIBROOT="c:\Program Files\Microsoft Visual Studio\vc98"

#MSLIBROOT="c:\pf\mvs\vc98"
#
#GLINC= $(MSLIBROOT)\include
#GLLIBROOT= $(MSLIBROOT)\lib

#
# (2) where is RM installed on your machine? update the
# following RMROOT definition for your environment.

RMROOT=\openrm\rm152
RMINC=$(RMROOT)\include
RMLIBROOT=$(RMROOT)\lib
RMLIBS = librm.lib librmv.lib librmi.lib librmaux.lib

#
# (3) location of pthreads for win32
#
PTHREADSROOT=\PTHREADS
PTHREADSINC = $(PTHREADSROOT)\include
PTHREADSLIBROOT = $(PTHREADSROOT)\lib
PTHREADSLIB = pthreadVC.lib

#
# (4) location of JPEG hdrs and libs for win32. Unless you explicitly
# disable JPEG support in RM (see $RM/include/rmi/rmi.h), you'll
# have to download the libjpeg src from www.ijg.org and build it
# for your system. We assume here that you've done that, and that
# the hdrs and libs are in the same directory (default locations
# after the build). If you have disabled JPEG support in your
# RM build, you can just comment out the following lines.
#
JPEGHOME=\jpeg-6b
JPEGINC=$(JPEGHOME)\include
JPEGLIBROOT=$(JPEGHOME)\lib
JPEGLIB=libjpeg.lib

#
# hopefully, you won't need to change anything else in this file.
#

CC = cl

PROGRAMS = \
	cones.exe \
	clipper.exe \
	clrball.exe \
	dyntmap.exe \
	elev.exe \
	elev-2vu.exe \
	elevImage.exe \
	fogtest.exe \
	fpsVis3d.exe \
	isodrv.exe \
	jack.exe \
	indexedPrims2D.exe \
	imgMirror.exe \
	jballs.exe \
	keyfunc.exe \
	lines2d.exe \
	offscreen.exe \
	orderTest.exe \
	pickTest.exe \
	pickListTest.exe \
	pntcld.exe \
	pdb.exe \
	spotlight.exe \
	spriteTest.exe \
	switchtest.exe \
	tcube.exe \
	text2d.exe \
	textureTest.exe \
	tfly.exe \
	tmap2d.exe \
	trans2d.exe \
	vis2d.exe \
	vis3d.exe

all:	$(PROGRAMS)

OPENGLLIBS=opengl32.lib glu32.lib
DIOLIB=libdio.obj

SYSLIBS = $(OPENGLLIBS) kernel32.lib user32.lib gdi32.lib 

LINK_FLAGS = /link /LIBPATH:$(RMLIBROOT) /LIBPATH:$(PTHREADSLIBROOT) /LIBPATH:$(JPEGLIBROOT) /nologo /subsystem:windows /incremental:yes /machine:I386 $(RMLIBS) $(PTHREADSLIB) $(JPEGLIB) $(SYSLIBS) /NODEFAULTLIB:LIBCD /NODEFAULTLIB:LIBC 

CFLAGS =  /nologo /MTd /W1 /GX /Z7 /Od /DWINDOWS  /FD /GZ -I\pf\mvs\vc98\include\GL -I$(RMINC) -I$(JPEGINC) -I$(PTHREADSINC) /DRM_WIN /c /D_DEBUG

# flags for CL linking
CLFLAGS = /Fe$@ /Z7

LIBS = $(RMLIBS) $(JPEGLIB) $(PTHREADSLIB) $(SYSLIBS)

.c.obj:
	$(CC) $(CFLAGS) -I../include /Fo$@ $< 

cones.exe:	cones.obj 
	$(CC) cones.obj $(CLFLAGS) $(LINK_FLAGS)

clipper.exe:	clipper.obj 
	$(CC) clipper.obj $(CLFLAGS) $(LINK_FLAGS)

clrball.exe:	clrball.obj 
	$(CC) clrball.obj $(CLFLAGS) $(LINK_FLAGS)

dyntmap.exe:	dyntmap.obj
	$(CC) dyntmap.obj $(CLFLAGS) $(LINK_FLAGS)

elev.exe:	libdio.obj elev.obj
	$(CC) elev.obj $(CLFLAGS) $(LINK_FLAGS) $(DIOLIB)

elev-2vu.exe:	libdio.obj elev-2vu.obj
	$(CC) elev-2vu.obj $(CLFLAGS) $(LINK_FLAGS) $(DIOLIB)

elevImage.exe:	libdio.obj elevImage.obj
	$(CC) elevImage.obj $(CLFLAGS) $(LINK_FLAGS) $(DIOLIB)

fogtest.exe:	libdio.obj fogtest.obj
	$(CC) fogtest.obj $(CLFLAGS) $(LINK_FLAGS) $(DIOLIB)

fpsVis3d.exe:	libdio.obj fpsVis3d.obj
	$(CC) fpsVis3d.obj $(CLFLAGS) $(LINK_FLAGS) $(DIOLIB)

isodrv.exe:	libdio.obj isodrv.obj
	$(CC) isodrv.obj $(CLFLAGS) $(LINK_FLAGS) $(DIOLIB)

indexedPrims2D.exe:	indexedPrims2D.obj
	$(CC) indexedPrims2D.obj $(CLFLAGS) $(LINK_FLAGS) 

imgMirror.exe:	imgMirror.obj
	$(CC) imgMirror.obj $(CLFLAGS) $(LINK_FLAGS) 

jack.exe:	jack.obj
	$(CC) jack.obj $(CLFLAGS) $(LINK_FLAGS) 

jballs.exe:	jballs.obj
	$(CC) jballs.obj $(CLFLAGS) $(LINK_FLAGS) 

keyfunc.exe:	keyfunc.obj
	$(CC) keyfunc.obj $(CLFLAGS) $(LINK_FLAGS) 

lines2d.exe:	lines2d.obj
	$(CC) lines2d.obj $(CLFLAGS) $(LINK_FLAGS) 

orderTest.exe:	orderTest.obj
	$(CC) orderTest.obj $(CLFLAGS) $(LINK_FLAGS) 

offscreen.exe:	offscreen.obj libdio.obj
	$(CC) offscreen.obj $(CLFLAGS) $(LINK_FLAGS) $(DIOLIB)

pickTest.exe:	pickTest.obj
	$(CC) pickTest.obj $(CLFLAGS) $(LINK_FLAGS)

pickListTest.exe:	pickListTest.obj
	$(CC) pickListTest.obj $(CLFLAGS) $(LINK_FLAGS)

pntcld.exe:	pntcld.obj
	$(CC) pntcld.obj $(CLFLAGS) $(LINK_FLAGS)

pdb.exe:	pdb.obj pdbwork.obj
	$(CC) pdb.obj pdbwork.obj $(CLFLAGS) $(LINK_FLAGS)

spotlight.exe:	spotlight.obj 
	$(CC) spotlight.obj $(CLFLAGS) $(LINK_FLAGS)

spriteTest.exe:	spriteTest.obj 
	$(CC) spriteTest.obj $(CLFLAGS) $(LINK_FLAGS)

switchtest.exe:	switchtest.obj 
	$(CC) switchtest.obj $(CLFLAGS) $(LINK_FLAGS)

tcube.exe:	tcube.obj $(DIOLIB)
	$(CC) tcube.obj $(CLFLAGS) $(LINK_FLAGS) $(DIOLIB)

tfly.exe:	tfly.obj $(DIOLIB)
	$(CC) tfly.obj $(CLFLAGS) $(LINK_FLAGS) $(DIOLIB)

text2d.exe:	text2d.obj
	$(CC) text2d.obj $(CLFLAGS) $(LINK_FLAGS) 

textureTest.exe:	textureTest.obj
	$(CC) textureTest.obj $(CLFLAGS) $(LINK_FLAGS) 

tmap2d.exe:	tmap2d.obj
	$(CC) tmap2d.obj $(CLFLAGS) $(LINK_FLAGS) 

trans2d.exe:	trans2d.obj $(DIOLIB)
	$(CC) trans2d.obj $(CLFLAGS) $(LINK_FLAGS) $(DIOLIB)

vector3d.exe:	vector3d.obj $(DIOLIB)
	$(CC) vector3d.obj $(CLFLAGS) $(LINK_FLAGS) $(DIOLIB)

vis2d.exe:	vis2d.obj $(DIOLIB)
	$(CC) vis2d.obj $(CLFLAGS) $(LINK_FLAGS) $(DIOLIB)

vis3d.exe:	vis3d.obj $(DIOLIB)
	$(CC) vis3d.obj $(CLFLAGS) $(LINK_FLAGS) $(DIOLIB)

clean:
	-del *.exe
	-del *.obj 
	-del *.o
	-del *.ilk 
	-del *.pdb 
	-del vc* 
	-del *.opt 
	-del *~
	-del *.ps
	-del *.x
	-del *.jpg
# EOF