all:	libpatchwork.a
ROOT=../..
include $(ROOT)/Config.mk
include $(ROOT)/makearch/$(ARCH)

INCS =	-I. -I$(ROOT) \
	-I../common \
	-I../neatogen \
	-I../sparse \
	-I../pack \
	-I../gvc \
	-I../fdpgen \
	-I../pathplan \
	-I../graph \
	-I../cdt \
	-I../gd

DEFINES = -DHAVE_CONFIG_H

OBJS = patchworkinit.o patchwork.o 

HFILES = patchwork.h 

libpatchwork.a : $(OBJS)
	$(RM) libpatchwork.a
	$(AR) cr libpatchwork.a $(OBJS)
	$(RANLIB) libpatchwork.a

$(OBJS) : $(HFILES) ../common/types.h

install: libpatchwork.a
	$(MKPATH) $(LIBDIR)
	$(INSTALL) libpatchwork.a $(LIBDIR)

clean:
	$(RM) *.o core

distclean: clean
	$(RM) *.a lib*.so.*
