PROGRAMS = visu
CFLAGS = 

LIBS = -lXm -lXt -lX11

IFLAGS = 

CC = gcc -DSYSV

# Solaris 2 libraries
LIBS= -lrw -lXm -lXt -lXext -lX11 -lgen -lm
DLIBS= -lrw -lXm -lXt -lXext -lX11 -lgen -lm
# Solaris 1 libraries
LIBS= -lXm -lXt -lXext -lX11  -lm
DLIBS= -lXm -lXt -lXext -lX11 -lm

# Change this according to the library who wish to link with
LIBPATH = sun4
 
# Change to inform your compiler of the host CPU type
QUALIFIER= -mcypress
 
# Change this to point to you X11 tree (if not in /usr/{lib,include})
WINSYS=/usr/openwin
 
# Change this to point to your Motif tree (if not in /usr/{lib,include})
#MOTIF= /net/X11R4/motif-1.1/motif-1.1.3
MOTIF= /usr/dt
 
# Change this to point to the to of your RenderWare install tree
RENDERWARETOP = /opt/net1/renderware/rw

INCLUDE=\
        -I${MOTIF}/include \
        -I${WINSYS}/include \
        -I${RENDERWARETOP}/include \

LIBMOTIF=\
        -L${MOTIF}/lib \
        -L${WINSYS}/lib \
        -L${RENDERWARETOP}/lib \
 
# Change this to the optimization flags for your compiler
CFLAGS= \
        -O2 \
        -ffast-math \
        -fstrength-reduce \
        -fdelayed-branch \
        -fexpensive-optimizations \
        -fomit-frame-pointer
 
DCFLAGS= \
        -ggdb \
        -I${MOTIF}/include \
        -I${WINSYS}/include \
        -I${RENDERWARETOP}/include \
        -O2 \
        -ffast-math \
        -fstrength-reduce \
        -fdelayed-branch \
        -fexpensive-optimizations \
        -fomit-frame-pointer
 


SRCS = visu_cb.c visu_ini.c visu_func.c visu.c
OBJS = visu_cb.o visu_ini.o visu_func.o visu.o

all: $(PROGRAMS)

$(OBJS):
	$(CC) $(INCLUDE) -c $(IFLAGS) $(CFLAGS) $*.c

$(PROGRAMS): $(OBJS)
	-rm -f $(PROGRAMS)
	$(CC) -o $(PROGRAMS) $(CFLAGS) $(OBJS) $(LIBMOTIF) $(LIBS)

clean:
	-rm -f *.[o]
