# VIEWPORT subdirectory Makefile

# Copyright (C) 1998  Cliff Johnson                                       #
#                                                                         #
# This program is free software; you can redistribute it and/or           #
# modify it under the terms of the GNU  General Public                    #
# License as published by the Free Software Foundation; either            #
# version 2 of the License, or (at your option) any later version.        #
#                                                                         #
# This software is distributed in the hope that it will be useful,        #
# but WITHOUT ANY WARRANTY; without even the implied warranty of          #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU       #
# General Public License for more details.                                #
#                                                                         #
# You should have received a copy of the GNU General Public License       #
# along with this software (see COPYING.LIB); if not, write to the        #
# Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. #

FREEROOT=..
include $(FREEROOT)/Makefile.in

SRCS = \
canvasglstate.cpp \
functionmapbehavior.cpp \
modifierbehavior.cpp \
pointstack.cpp \
typemaskbehavior.cpp \
vdapp.cpp \
vdcmdwin.cpp \
vdglcanvas.cpp 

OBJS = $(SRCS:%.cpp=%.o)

all: $(OBJS)

# special rules 

vdcmdwin.o : vdcmdwin.cpp vdfunctionmenu.cpp_ vdmainmenu.cpp_ vdtypemaskbar.cpp_ vdfunctionmenu.cpp_
	$(CXX) vdcmdwin.cpp $(CFLAGS) -c 

typemaskbehavior.o : typemaskbehavior.cpp cmdarray.cpp_ $(DATAENGINE)/valuearray.cpp_
	$(CXX) typemaskbehavior.cpp $(CFLAGS) -c 

# general rules

%.o : %.cpp
	$(CXX) $*.cpp  $(CFLAGS) -c

clean : 
	rm -f *.o

vimclean: clean
	rm -f *~
