## sqedit -- sequence diagram creation/manipulation program
## Copyright (C) 2001 Touge Kamisimo
##
## 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.

CC		= gcc -g
CCFLAG		= `gtk-config --cflags`
LINKFLAG	= `gtk-config --libs` -lXpm -lgdk_imlib -lz -lgif -lm
OBJECTS		= sqedit.o sq_drawing_area.o sq_toolbar.o sq_menubar.o \
                  sq_commands.o sq_scrolled_window.o sq_main_window.o \
                  sq_lifeline.o sq_edit.o sq_util.o sq_message.o \
                  sq_recursive.o sq_io.o

COMPILE		= $(CC) $(CCFLAG)
LINK		= $(CC) $(LINKFLAG)

cdedit:	$(OBJECTS)
	$(LINK) $(OBJECTS) -o sqedit

.c.o:
	$(COMPILE) -c $<

clean: 
	rm -f sqedit

veryclean: clean
	rm -f $(OBJECTS) *~ core *.sq *.old *.eps *.gif *.jpg
