]> granicus.if.org Git - graphviz/commitdiff
separate tree for plugins
authorellson <devnull@localhost>
Sun, 25 Jun 2006 10:36:35 +0000 (10:36 +0000)
committerellson <devnull@localhost>
Sun, 25 Jun 2006 10:36:35 +0000 (10:36 +0000)
plugin/core/CMakeLists.txt [new file with mode: 0644]
plugin/core/Makefile.am [new file with mode: 0644]
plugin/core/Makefile.old [new file with mode: 0644]

diff --git a/plugin/core/CMakeLists.txt b/plugin/core/CMakeLists.txt
new file mode 100644 (file)
index 0000000..df4cdda
--- /dev/null
@@ -0,0 +1,27 @@
+# $Id$ $Revision$
+## Process this file with cmake to produce Makefile
+
+INCLUDE_DIRECTORIES(
+       ${CMAKE_CURRENT_SOURCE_DIR}
+       ${CMAKE_SOURCE_DIR}
+       ${CMAKE_SOURCE_DIR}/lib/common
+       ${CMAKE_SOURCE_DIR}/lib/cdt
+       ${CMAKE_SOURCE_DIR}/lib/graph
+       ${CMAKE_SOURCE_DIR}/lib/pathplan
+       ${CMAKE_SOURCE_DIR}/lib/gvc
+)
+
+########### next target ###############
+
+SET(gvplugin_core_SRCS
+    gvplugin_core.c
+    gvrender_core_svg.c
+    gvrender_core_ps.c
+    gvrender_core_map.c
+    gvloadimage_core.c
+)
+ADD_LIBRARY(gvplugin_core MODULE ${gvplugin_core_SRCS})
+
+ADD_LIBRARY(gvplugin_core_static STATIC ${gvplugin_core_SRCS})
+
+########### install files ###############
diff --git a/plugin/core/Makefile.am b/plugin/core/Makefile.am
new file mode 100644 (file)
index 0000000..cbee803
--- /dev/null
@@ -0,0 +1,29 @@
+# $Id$ $Revision$
+## Process this file with automake to produce Makefile.in
+
+AM_CPPFLAGS = \
+       -I$(top_srcdir) \
+       -I$(top_srcdir)/lib/common \
+       -I$(top_srcdir)/lib/pathplan \
+       -I$(top_srcdir)/lib/gvc \
+       -I$(top_srcdir)/lib/graph \
+       -I$(top_srcdir)/lib/cdt \
+       $(LIBGVC_CFLAGS)
+
+noinst_LTLIBRARIES = libgvplugin_core_C.la
+
+pkglib_LTLIBRARIES = libgvplugin_core.la
+
+libgvplugin_core_C_la_SOURCES = \
+       gvplugin_core.c \
+       gvrender_core_svg.c \
+       gvrender_core_ps.c \
+       gvrender_core_map.c \
+       gvloadimage_core.c
+
+libgvplugin_core_la_LDFLAGS = -version-info @VERSION_INFO@ --no-undefined
+libgvplugin_core_la_SOURCES = $(libgvplugin_core_C_la_SOURCES)
+libgvplugin_core_la_LIBADD = 
+
+EXTRA_DIST = Makefile.old
+
diff --git a/plugin/core/Makefile.old b/plugin/core/Makefile.old
new file mode 100644 (file)
index 0000000..032c822
--- /dev/null
@@ -0,0 +1,33 @@
+all:   libgvplugin_core.a 
+ROOT=../..
+include $(ROOT)/Config.mk
+include $(ROOT)/makearch/$(ARCH)
+
+INCS =  -I. \
+       -I$(ROOT) \
+        -I../common \
+        -I../gvc \
+        -I../pathplan \
+        -I../graph \
+        -I../cdt \
+        $(EXTLIB_INC)
+
+DEFINES = -DHAVE_CONFIG_H
+
+OBJS = gvplugin_core.o gvrender_core_ps.o gvrender_core_svg.o \
+          gvrender_core_map.o gvloadimage_core.o
+
+libgvplugin_core.a : $(OBJS)
+       $(RM) libgvplugin_core.a
+       $(AR) cr libgvplugin_core.a $(OBJS)
+       $(RANLIB) libgvplugin_core.a
+
+install: libgvplugin_core.a
+       $(MKPATH) $(LIBDIR)
+       $(INSTALL) libgvplugin_core.a $(LIBDIR)
+
+clean:
+       $(RM) core *.o
+
+distclean: clean
+       $(RM) *.a ptest