From 7a38578a360fa915650d42b95ccb24f9599727e3 Mon Sep 17 00:00:00 2001 From: ellson Date: Fri, 23 Jun 2006 03:11:22 +0000 Subject: [PATCH] Experimenting with cmake - which claims to replace autoconf,automake,libtool and be more portable --- lib/cdt/CMakeLists.txt | 80 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 lib/cdt/CMakeLists.txt diff --git a/lib/cdt/CMakeLists.txt b/lib/cdt/CMakeLists.txt new file mode 100644 index 000000000..0f7140ba4 --- /dev/null +++ b/lib/cdt/CMakeLists.txt @@ -0,0 +1,80 @@ +# $Id$ $Revision$ +## Process this file with cmake to produce Makefile + +INCLUDE_DIRECTORIES( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR} +) + +########### next target ############### + +SET(cdt_SRCS + dtclose.c + dtdisc.c + dtextract.c + dtflatten.c + dthash.c + dtlist.c + dtmethod.c + dtopen.c + dtrenew.c + dtrestore.c + dtsize.c + dtstat.c + dtstrhash.c + dttree.c + dtview.c + dtwalk.c +) + +ADD_LIBRARY(cdt STATIC ${cdt_SRCS}) + + +########### install files ############### + +INSTALL_FILES(FILES + libcdt.pc +) +INSTALL_FILES(FILES + cdt.pdf +) +INSTALL_FILES(FILES + cdt.1 +) + + +#original Makefile.am contents follow: + +## $Id$ $Revision$ +### Process this file with automake to produce Makefile.in +# +#pdfdir = $(pkgdatadir)/doc/pdf +#pkgextraincludedir = $(pkgincludedir) +#pkgconfigdir = $(libdir)/pkgconfig +# +#man = cdt.3 +#pdf = cdt.pdf +# +#AM_CPPFLAGS = -I$(top_srcdir) +# +#pkginclude_HEADERS = cdt.h dthdr.h +#noinst_LTLIBRARIES = libcdt_C.la +#pkglib_LTLIBRARIES = libcdt.la +#man_MANS = $(man) +#pdf_DATA = $(pdf) +#pkgextrainclude_DATA = $(top_builddir)/ast_common.h +#pkgconfig_DATA = libcdt.pc +# +#libcdt_C_la_SOURCES = dtclose.c dtdisc.c dtextract.c dtflatten.c \ +# dthash.c dtlist.c dtmethod.c dtopen.c dtrenew.c dtrestore.c dtsize.c \ +# dtstat.c dtstrhash.c dttree.c dtview.c dtwalk.c +# +#libcdt_la_LDFLAGS = -version-info @VERSION_INFO@ -no-undefined +#libcdt_la_SOURCES = $(libcdt_C_la_SOURCES) +# +#.3.pdf: +# groff -Tps -man $< | ps2pdf - - >$@ +# +#EXTRA_DIST = $(man) $(pdf) Makefile.old features +# +#DISTCLEANFILES = $(pdf) -- 2.40.0