# Example makefile for vipexample

# ========== libraries and headers ==========

VIP_DIR    =  /proj/robvis/vip
LIB_DIR    = $(VIP_DIR)/lib/sunlib
INCLUDE    = -I$(VIP_DIR)/include 

LIBPATH   = -L$(LIB_DIR)

# Flags and Options

fla	= -O
CFLAGS  = $(INCLUDE) $(fla) -DSUN
LIBS = $(LIBPATH) -lvip -lm

# Use the gnu C compiler rather than the system's cc compiler
CC   = gcc

# ========== Building rules for Makefile ==========


vipexample:  vipexample.o
	$(LINK.c) -o vipexample vipexample.o $(LIBS)

vipexample.o: vipexample.c
	$(COMPILE.c) vipexample.c

