Changeset 3908
- Timestamp:
- May 12, 2005, 3:37:54 PM (21 years ago)
- Location:
- trunk/glueforge
- Files:
-
- 5 edited
-
glueforge.in (modified) (3 diffs)
-
templates/psdb/autogen_sh.tt (modified) (1 diff)
-
templates/psdb/configure_ac.tt (modified) (2 diffs)
-
templates/psdb/pkgconfig_pc_in.tt (modified) (1 diff)
-
templates/psdb/src_makefile_am.tt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/glueforge/glueforge.in
r3861 r3908 3 3 # Copyright (C) 2005 Joshua Hoblitt 4 4 # 5 # $Id: glueforge.in,v 1. 7 2005-05-06 04:07:42jhoblitt Exp $5 # $Id: glueforge.in,v 1.8 2005-05-13 01:37:53 jhoblitt Exp $ 6 6 7 7 use strict; … … 51 51 } 52 52 53 $data{object_name} = $data{table_name} . "Row"; 54 $data{lib_name} = $data{table_name} . "db"; 55 $data{file_name} = $data{lib_name}; 53 $data{pkg_name} = $data{table_name} . "db"; 54 $data{file_name} = $data{pkg_name}; 56 55 $data{namespace} = $data{table_name}; 56 $data{object_name} = $data{namespace} . "Row"; 57 57 58 58 my @items; … … 77 77 $data{columns} = \@items; 78 78 79 $output = $data{ lib_name} unless defined $output;79 $output = $data{pkg_name} unless defined $output; 80 80 81 81 my %tt = ( 82 82 'autogen_sh.tt' => "$output/autogen.sh", 83 83 'configure_ac.tt' => "$output/configure.ac", 84 'pkgconfig_pc_in.tt' => "$output/$data{ lib_name}.pc.in",84 'pkgconfig_pc_in.tt' => "$output/$data{pkg_name}.pc.in", 85 85 'top_makefile_am.tt' => "$output/Makefile.am", 86 86 'src_makefile_am.tt' => "$output/src/Makefile.am", -
trunk/glueforge/templates/psdb/autogen_sh.tt
r3859 r3908 8 8 cd $srcdir 9 9 10 PROJECT=[% lib_name %]10 PROJECT=[% pkg_name %] 11 11 TEST_TYPE=-f 12 12 # change this to be a unique filename in the top level dir -
trunk/glueforge/templates/psdb/configure_ac.tt
r3860 r3908 3 3 AC_PREREQ(2.59) 4 4 5 AC_INIT([[% lib_name %]], [0.0.1], [pan-starrs.ifa.hawaii.edu])6 AC_CONFIG_SRCDIR([[% lib_name %].pc.in])5 AC_INIT([[% pkg_name %]], [0.0.1], [pan-starrs.ifa.hawaii.edu]) 6 AC_CONFIG_SRCDIR([[% pkg_name %].pc.in]) 7 7 8 8 AM_INIT_AUTOMAKE([1.6 foreign dist-bzip2]) … … 18 18 19 19 dnl is this the best was to setup recursive CFLAGS? 20 [% lib_name %]_CFLAGS="-Wall -pedantic -std=c99"21 AC_SUBST([[% lib_name %]_CFLAGS])20 [% pkg_name %]_CFLAGS="-Wall -pedantic -std=c99" 21 AC_SUBST([[% pkg_name %]_CFLAGS]) 22 22 23 AC_CONFIG_FILES([% lib_name %].pc Makefile src/Makefile)23 AC_CONFIG_FILES([% pkg_name %].pc Makefile src/Makefile) 24 24 AC_OUTPUT -
trunk/glueforge/templates/psdb/pkgconfig_pc_in.tt
r3728 r3908 4 4 includedir=@includedir@ 5 5 6 Name: [% lib_name %]6 Name: [% pkg_name %] 7 7 Description: some library 8 8 Version: @VERSION@ 9 9 Requires: pslib 10 Libs: -L${libdir} -l[% lib_name %]10 Libs: -L${libdir} -l[% pkg_name %] 11 11 Cflags: -I${includedir} -
trunk/glueforge/templates/psdb/src_makefile_am.tt
r3735 r3908 1 AM_CFLAGS = @[% lib_name %]_CFLAGS@1 AM_CFLAGS = @[% pkg_name %]_CFLAGS@ 2 2 3 include_HEADERS = [% lib_name %].h4 lib_LTLIBRARIES = lib[% lib_name %].la5 lib[% lib_name %]_la_CFLAGS = $(PSLIB_CFLAGS) $(AM_CFLAGS)6 lib[% lib_name %]_la_LIBS = $(PSLIB_LIBS) $(AM_LIBS)7 lib[% lib_name %]_la_LDFLAGS = -release $(PACKAGE_VERSION)8 lib[% lib_name %]_la_SOURCES = \9 [% lib_name %].h \10 [% lib_name %].c3 include_HEADERS = [% pkg_name %].h 4 lib_LTLIBRARIES = lib[% pkg_name %].la 5 lib[% pkg_name %]_la_CFLAGS = $(PSLIB_CFLAGS) $(AM_CFLAGS) 6 lib[% pkg_name %]_la_LIBS = $(PSLIB_LIBS) $(AM_LIBS) 7 lib[% pkg_name %]_la_LDFLAGS = -release $(PACKAGE_VERSION) 8 lib[% pkg_name %]_la_SOURCES = \ 9 [% pkg_name %].h \ 10 [% pkg_name %].c
Note:
See TracChangeset
for help on using the changeset viewer.
