#//////////////////////////////////////////////////////////////////////////
# Filename:	Makefile
# Author:	Ron Burkey
# Purpose:	Makefile for Do178Builder.  The assumption is that GNU
#		make and gcc (or mingw32) are used.
# Mods:		09/30/01 RSB	Created.
#		10/21/01 RSB	Was just a single gcc command that compiled
#				and linked everything, regardless of whether
#				any of it had changed.  Put into a little
#				less primitive form.
#		02/18/02 RSB	Changed optimization to -O0.
#		11/10/03 RSB	Added the 'install' target.
#
#  Copyright 2001-2003 Ronald S. Burkey
#
#  This file is part of Do178Builder.
#
#  Do178Builder 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.
#
#  Do178Builder 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 Do178Builder; if not, write to the Free Software
#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

#//////////////////////////////////////////////////////////////////////////

Do178Builder: \
	Do178Builder.o \
	Do178Builder_wdr.o \
	XmlEditorDialogClass.o \
	SearchBoxClass.o \
	LoadXmlFile.o
	gcc `wx-config --libs` -g -o $@ $^ -lold
	
clean:	scrub Do178Builder

scrub:
	-rm Do178Builder
	-rm *.o		
		
install: Do178Builder
	cp Do178Builder /usr/local/bin
	chmod ugo+x /usr/local/bin/Do178Builder		
		
%.o:	%.cpp Do178Builder.h Do178Builder_wdr.h		
	gcc `wx-config --cppflags` -Wall -c -g -o $@ $<
		
