Re: Makefile Help

New Message Reply Date view Thread view Subject view Author view

Takehiko Terada (terada++at++terada.nsg.sgi.com)
Wed, 6 Nov 1996 10:16:47 +0900


On Nov 5, 4:29pm, Janet Estabridis wrote:
> Subject: Makefile Help
> We have just upgraded one of our machines to IRIX 6.2 and I am trying to
> get everything working on it. We have R4400's in a RE2.
> What I would like from someone is a Makefile for Performer 2.0 with OpenGL
> for 6.2. I have tried modifying the one I was using with Performer 2.0 and
> OpenGL on IRIX 5.3 (that I got at my Performer class) and I am getting a
> bunch of warnings about definitions from a library preempting definitions
> from another library. I get an executable but it crashes.

You can find some Makefile samples from /usr/share/Performer/src/....

But usualy I use a simple Makefile like this,

----
CC = cc
PERFORMER = -lpfdu_ogl -lpfui -lpfutil_ogl -lpf_ogl # -lpr

LIBS = $(PERFORMER) -lGLU -lGL -lXext -lX11 -lm -lfpe -lC

#DEBUG = -DDEBUG -g
DEFINES = $(DEBUG) # -DIRISGL

CFLAGS = $(DEFINES)
LDFLAGS = $(LIBS)

PROGRAMS = simple

ALL : $(PROGRAMS)
SRCS = simple.c
OBJS = $(SRCS:.c=.o)

.c.o:
        rm -f $++at++
        $(CC) $(CFLAGS) -c $*.c

.C.o:
        rm -f $++at++
        $(C++) $(CFLAGS) -c $*.c

$(PROGRAMS): $(OBJS)
        rm -f $++at++
        $(CC) -o $++at++ $(OBJS) $(LDFLAGS)

clean:
        rm -f $(OBJS) $(PROGRAMS)
----

-- 
-------
Takehiko Terada (terada++at++sgi.co.jp / terada++at++nsg.sgi.com)
(System Engineer/Sales Div/Nihon Silicon Graphics K.K.)
<http://reality.sgi.com/employees/terada_nsg/>
Tel +81-3-5488-1821 / Fax +81-3-5420-7234
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:53 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.