# AVS example Makefile for Generic-AVS
#	
# If AVS is not installed in /usr/avs, then set the AVS_PATH environment
# variable and override it during the make as in:
#    setenv AVS_PATH /my_dir/avs
#    make -e

AVS_PATH=/usr/avs
INC_FILE=$(AVS_PATH)/include/Makeinclude
MLIB=-lm
include $(INC_FILE)

AVS_LIBS=$(AVS_PATH)/lib
BASELIBS=-lgeom -lutil -lm
FLOWLIBS=-L$(AVS_LIBS) -lflow_c $(BASELIBS) $(LASTLIBS)
CSIMLIBS=-L$(AVS_LIBS) -lsim_c $(BASELIBS) $(LASTLIBS)
MODLIBS=-L$(AVS_LIBS) -lmdata -lmfilt -lmmapp -lmrend -lrf
AVS_INC=-I. -I$(AVS_PATH)/include
#
# Opt flags:
CFLAGS=$(ACFLAGS) $(AVS_INC)
#
# Debug flags:
#CFLAGS= -g $(AVS_INC)


#**********************************************************************

all: ace_to_ucd

#**********************************************************************
# Example Modules and support files

ace_to_ucd: ace_to_ucd.o
	$(CC) $(CFLAGS) -o ace_to_ucd ace_to_ucd.o $(CSIMLIBS)

clean:
	rm -f core  ace_to_ucd ace_to_ucd.o