POV-Ray : Newsgroups : povray.unix : MegaPOV for SunOS? : Re: MegaPOV for SunOS? Server Time
28 Jul 2024 14:29:45 EDT (-0400)
  Re: MegaPOV for SunOS?  
From: Warp
Date: 20 Nov 2000 05:50:41
Message: <3a190201@news.povray.org>
Micha Riser <mri### [at] datacommch> wrote:
: How did you compile it from this source? ... it comes without makefile
: and just taking the one from 3.1 doesn't work.

  I made my own makefile (needs gmake). Put it into the unix/ subdirectory
and change some paths inside it to the correct ones in your system:

-------8<-------8<-------8<-------8<-------8<-------8<-------8<-------8<----
CC = gcc
LD = gcc

INCLUDES = $(SRCINC) $(LIBPNGINC) $(ZLIBINC) $(XLIBINC)
CFLAGS = -O3 -ffast-math -c -DCOMPILER_VER=\".`uname`.$(CC)\" $(INCLUDES)
#CFLAGS = -g -ansi -c -DCOMPILER_VER=\".`uname`.$(CC)\" $(INCLUDES)
LFLAGS = $(LIBPNGLIB) $(ZLIBLIB) $(XLIBLIB) -lm

X11 = /share/X11R6
XLIBINC = -I$(X11)/include
XLIBLIB = -L$(X11)/lib -lX11

PNGDIR = /share/local5/include
LIBPNGINC = -I$(PNGDIR)
LIBPNGLIB = -L/share/local5/lib -lpng

ZLIBDIR = /share/local5/include
ZLIBINC = -I$(ZLIBDIR)
ZLIBLIB = -L/share/local5/lib -lz

SRCDIR = ..
SRCINC = -I$(SRCDIR) -I.

SRC = $(wildcard $(SRCDIR)/*.c) $(wildcard *.c)
HEADERS = $(wildcard $(SRCDIR)/*.h) $(wildcard *.h)

BIN = xmegapov

$(BIN): $(SRC:.c=.o)
        $(LD) $^ -o $(BIN) $(LFLAGS)

include .makefile.dep

depend:
        gcc $(INCLUDES) -MM $(SRC) > .makefile.dep

.makefile.dep:
        - gcc $(INCLUDES) -MM $(SRC) > .makefile.dep
-------8<-------8<-------8<-------8<-------8<-------8<-------8<-------8<----

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.