#*++
#COPYRIGHT:
#This file is part of the GSM Suite, a set of programs for
#manipulating state machines in a graphical fashion.
#Copyright (C) 1996, 1997  G. Andrew Mangogna.
#
#LICENSE:
#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 program 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 program; if not, write to the
#Free Software Foundation, Inc.,
#59 Temple Place - Suite 330,
#Boston, MA  02111-1307, USA.
#
#MODULE:
#	Makefile for the application framework that is used as the
#	basis for the GUI in gsmedit.
#
#$RCSfile: Makefile,v $
#$Revision: 1.20 $
#$Date: 1997/07/18 04:31:54 $
#
#ABSTRACT:
#
#MODIFICATION HISTORY:
#$Log: Makefile,v $
#Revision 1.20  1997/07/18 04:31:54  andrewm
#Changes to makefiles in preparation for final build.
#
#Revision 1.19  1997/07/14 04:30:49  andrewm
#More minor makefile tweeks.
#
#Revision 1.18  1997/07/14 02:30:31  andrewm
#Checkpoint.  Rework makefiles.  Rework man pages.  Fixed PostScript problems.
#
#*--
TARGET	=	libapplframe.a
SRCS	= \
			Application.cc \
			Dialog.cc \
			DialogDirector.cc \
			DialogForm.cc \
			Document.cc \
			DrawingArea.cc \
			ErrorDialog.cc \
			FileSelectionDialog.cc \
			InfoDialog.cc \
			MainWindow.cc \
			MenuBar.cc \
			MenuButton.cc \
			MenuComponent.cc \
			MenuPopup.cc \
			MenuPulldown.cc \
			MenuSeparator.cc \
			MessageArea.cc \
			MessageDialog.cc \
			PromptDialog.cc \
			QuestionDialog.cc \
			RubberBand.cc \
			RubberLine.cc \
			Selection.cc \
			SelectionBox.cc \
			SelectionDialog.cc \
			TextEditor.cc \
			TextWidgetStreamBuf.cc \
			Toolbar.cc \
			TwoPartSelectionBox.cc \
			UIComponent.cc \
			WarnDialog.cc \
			WorkDialog.cc \
			$(NULL)
OBJS	=	$(SRCS:%.cc=%.o)

CXXFLAGS	=	-m486 -g -O
INCLUDEDIRS	= \
			../machcommon \
			../machgraphic \
			/usr/X11R6/include \
			$(NULL)
CPPFLAGS	+= $(foreach dir,$(INCLUDEDIRS),-I$(dir))

CLEANFILES	= \
			*.o \
			.*.d \
			gsmedit_fallback.cc \
			a.out \
			core \
			Makefile.bak \
			$(TARGET) \
			$(NULL)

.PHONEY : all clean

all : $(TARGET)($(OBJS))

clean:
	$(RM) $(CLEANFILES)

.%.d : %.cc
	@$(SHELL) -ec '$(CXX) -MM $(CPPFLAGS) $< \
		| sed '\''s/\($*\.o\)[ :]*/\1 $@ : /g'\'' > $@'

Application.o : gsmedit_fallback.cc

gsmedit_fallback.cc : ../gsmedit/Gsmedit
	./fallback ../gsmedit/Gsmedit > gsmedit_fallback.cc

include $(SRCS:%.cc=.%.d)
