#
# Makefile for FlowFun
# Generated by RapidApp 1.2
#
# You should be able to customize this Makefile by editing
# only the section between the ##---- markers below.
# Specify additional files, compiler flags, libraries
# by changing the appropriate variables
#

##---- Start editable code block: definitions

###########################################################
###########################################################
# Modify the following variables to customize this makefile
###########################################################
###########################################################
#
# Local Definitions
#

# Add Additional libraries to USERLIBS:

USERLIBS= 

# While developing, leave OPTIMIZER set to -g.
# For delivery, change to -O2

OPTIMIZER= -g
#
# Add any files added outside RapidApp here
#

USERFILES = 

#
# Add compiler flags here
#

USERFLAGS = 

##---- End editable code block: definitions

#  The GL library being used, if needed

GLLIBS=-lGLw -lGL -lGLU
COMPONENTLIBS= 


#
# The ViewKit stub help library (-lvkhelp) provides a simple 
# implementation of the ViewKit help API. 
#

HELPLIB= -lvkhelp
MESSAGELIBS=
LICENSELIB=

EZLIB = -lvkEZ
VIEWKITLIBS= $(MESSAGELIBS) $(EZLIB) -lvk $(HELPLIB) $(LICENSELIB) -lSgm -lXpm

# Local C++ options.
# woff 3262 shuts off warnings about arguments that are declared
# but not referenced.

WOFF= -woff 3262

CXXOPTS = -nostdinc  -I. -I/usr/include/CC -I/usr/include $(OPTIMIZER) $(WOFF) $(USERFLAGS)

LDLIBS =  $(USERLIBS) $(COMPONENTLIBS) $(VIEWKITLIBS) $(GLLIBS) -lXm -lXt -lX11 -lgen 

.SUFFIXES : .C
.C.o :
	$(CXX) $(CXXOPTS) -c $<


#
# Object files for sources generated by RapidApp. If files are added
# manually, add them to USERFILES
#

BUILDERFILES =  main.o\
		FlowFunMainWindow.o\
		Form.o\
		FormUI.o\
		Frame1.o\
		Frame1UI.o\
		userInput2D.o\
		unimplemented.o\
		$(NULL)

OBJECTS = $(BUILDERFILES) $(USERFILES)


#
# The program being built
#

TARGETS=FlowFun
APPDEFAULTS=FlowFun
default all: $(TARGETS)


$(TARGETS): $(OBJECTS)
	$(C++) $(OPTIMIZER) $(OBJECTS) $(LDFLAGS) -o $@ $(LDLIBS)

#
# To install on the local machine, do 'make install'
#

install: all
	$(INSTALL) -F /usr/lib/X11/app-defaults FlowFun
	$(INSTALL) -F /usr/sbin FlowFun

clean clobber:
	rm -f FlowFun
	rm -f  $(OBJECTS)


