include $(ROOT)/makearch/$(ARCH)
LOC_LIB = $(ROOT)/lib
-LOC_PLUG=$(ROOT)/plugin
+LOC_PLUG=$(LOC_LIB)/plugin
INCS = -I$(LOC_LIB)/gvc -I$(LOC_LIB)/common -I$(ROOT) -I$(LOC_LIB)/cdt \
-I$(LOC_LIB)/pathplan -I$(LOC_LIB)/gd -I$(LOC_LIB)/graph
-L$(LOC_LIB)/gd -lgd \
$(EXTLIB_LIB) $(EXPAT_LIB) -lm
-PLUGS = -L$(LOC_PLUG) -lplugins -L$(LOC_PLUG)/layout -lgvplugin_layout
+PLUGS = -L$(LOC_PLUG) -lgvplugin_layout
LIBS = -L$(LOC_LIB)/gvc -lgvc $(PLUGS) \
-L$(LOC_LIB)/common -lcommon \
-L$(LOC_LIB)/common -lcommon \
$(XLIBS)
-DOTLIBS = ../../lib/common/libcommon.a ../../lib/dotgen/libdotgen.a \
- ../../lib/neatogen/libneatogen.a ../../lib/fdpgen/libfdpgen.a \
- ../../lib/twopigen/libtwopigen.a ../../lib/circogen/libcircogen.a
-
+DOTLIBS = $(LOC_LIB)/common/libcommon.a $(LOC_LIB)/dotgen/libdotgen.a \
+ $(LOC_LIB)/neatogen/libneatogen.a $(LOC_LIB)/fdpgen/libfdpgen.a \
+ $(LOC_LIB)/plugin/libgvplugin_layout.a $(LOC_LIB)/gvc/libgvc.a \
+ $(LOC_LIB)/twopigen/libtwopigen.a $(LOC_LIB)/circogen/libcircogen.a
OBJS = dot.o
-SHLIBS = twopigen/libtwopi.a dotgen/libdot.a neatogen/libneato.a pack/libpack.a gvrender/libgvrender.a common/libcommon.a
all : dot
dot.o : dot.c
$(CC) -c $(CCFLAGS) $(DEFINES) $(INCS) dot.c
-plugins.o : plugins.c
- $(CC) -c $(CCFLAGS) $(DEFINES) $(ALLINCS) plugins.c
-
install: all
$(MKPATH) $(BINDIR)
$(INSTALL) dot $(BINDIR)
$(RM) $(BINDIR)/twopi; $(LN) -s $(BINDIR)/dot $(BINDIR)/twopi
$(MKPATH) $(MANDIR)
$(INSTALL) dot.1 $(MANDIR)
+ $(RM) $(MANDIR)/neato.1 $(MANDIR)/fdp.1 $(MANDIR)/circo.1 $(MANDIR)/twopi.1
$(LN) -s $(MANDIR)/dot.1 $(MANDIR)/neato.1
$(LN) -s $(MANDIR)/dot.1 $(MANDIR)/fdp.1
$(LN) -s $(MANDIR)/dot.1 $(MANDIR)/circo.1
include $(ROOT)/makearch/$(ARCH)
LOC_LIB=$(ROOT)/lib
-LOC_PLUG=$(ROOT)/plugin
+LOC_PLUG=$(LOC_LIB)/plugin
LOC_INCDIR=$(LOC_LIB)/include
LOC_LIBDIR=$(LOC_LIB)/lib
-I$(LOC_LIB)/common -I$(LOC_LIB)
LIBS = -L$(LOC_LIB)/graph -lgraph -L$(LOC_LIB)/cdt -lcdt
-PLUGS = -L$(LOC_PLUG) -lplugins -L$(LOC_PLUG)/layout -lgvplugin_layout
+PLUGS = -L$(LOC_PLUG) -lgvplugin_layout
DNLIBS = -L$(LOC_LIB)/gvc -lgvc $(PLUGS) \
-L$(LOC_LIB)/common -lcommon \