## cdedit2 -- class 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		= cdedit.o cd_node.o cd_arc.o cd_window.o cd_menu.o \
                  cd_canvas.o cd_control.o cd_util.o cd_io.o \
                  cd_node_dialog.o cd_arc_dialog.o cd_tool_set_dialog.o

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

cdedit2:	$(OBJECTS)
	$(LINK) $(OBJECTS) -o cdedit2

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

clean: 
	rm -f cdedit2

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