Changeset 536 for trunk/gsdl


Ignore:
Timestamp:
1999-09-08T09:24:00+12:00 (25 years ago)
Author:
sjboddie
Message:

added GPL header

Location:
trunk/gsdl/src/txt2db
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/txt2db/Makefile

    r238 r536  
    22#
    33# Makefile -- Makefile for txt2db
     4# A component of the Greenstone digital library software
     5# from the New Zealand Digital Library Project at the
     6# University of Waikato, New Zealand.
     7#
    48# Copyright (C) 1998 Rodger McNab, Stefan Boddie
    59#
     
    2529AR = ar
    2630CC = gcc
    27 CCFLAGS =
     31CCFLAGS = -p
    2832DEFS = -O2
    2933RANLIB = ranlib
    3034INCLUDES = -I../../lib
    3135LDFLAGS =
    32 LIBS = ../../lib/gsdllib.a ../../packages/mg-1.3d/lib/unitool.o -lstdc++ -lgdbm
     36LIBS = ../../lib/gsdllib.a ../../packages/mg/lib/unitool.o -lstdc++ #-lgdbm
    3337GSDLOS = linux
    3438
    3539 
    3640COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CCFLAGS)
    37 LINK = $(CC) $(LDFLAGS) -o $@
     41LINK = $(CC) $(LDFLAGS) -o $@ -lgdbm
    3842 
    3943.SUFFIXES:
     
    7276
    7377txt2db: $(TXT2DB_OBJS) $(LIBS)
    74     $(LINK) $(TXT2DB_OBJS) $(LIBS) 
     78    $(LINK) $(TXT2DB_OBJS) $(LIBS)
    7579
    7680
    7781# DO NOT DELETE
    78 
    79 txt2db.o: ../../lib/text_t.h
     82txt2db.o: txt2db.cpp /usr/include/gdbm.h ../../lib/gsdlconf.h \
     83 ../../lib/text_t.h /usr/include/g++/vector /usr/include/g++/vector.h \
     84 /usr/include/g++/function.h /usr/include/g++/algobase.h \
     85 /usr/include/g++/pair.h /usr/include/g++/iterator.h \
     86 /usr/lib/gcc-lib/i486-linux/2.7.2/include/stddef.h \
     87 /usr/include/g++/iostream.h /usr/include/g++/streambuf.h \
     88 /usr/include/libio.h /usr/include/_G_config.h \
     89 /usr/include/sys/cdefs.h /usr/include/g++/defalloc.h \
     90 /usr/include/g++/new.h /usr/include/g++/std/new.h \
     91 /usr/include/g++/std/cstddef.h /usr/include/stdlib.h \
     92 /usr/include/features.h /usr/include/errno.h \
     93 /usr/include/linux/errno.h /usr/include/asm/errno.h \
     94 /usr/include/alloca.h \
     95 /usr/lib/gcc-lib/i486-linux/2.7.2/include/limits.h \
     96 /usr/lib/gcc-lib/i486-linux/2.7.2/include/syslimits.h \
     97 /usr/include/limits.h /usr/include/posix1_lim.h \
     98 /usr/include/linux/limits.h /usr/include/posix2_lim.h \
     99 /usr/include/g++/list /usr/include/g++/list.h /usr/include/g++/set \
     100 /usr/include/g++/set.h /usr/include/g++/tree.h \
     101 /usr/include/g++/projectn.h /usr/include/g++/map \
     102 /usr/include/g++/map.h /usr/include/g++/ostream.h \
     103 /usr/include/g++/stream.h
  • trunk/gsdl/src/txt2db/txt2db.cpp

    r519 r536  
     1/**********************************************************************
     2 *
     3 * txt2db.cpp --
     4 * A component of the Greenstone digital library software
     5 * from the New Zealand Digital Library Project at the
     6 * University of Waikato, New Zealand.
     7 *
     8 * Copyright (C) 1999  The New Zealand Digital Library Project
     9 *
     10 * This program is free software; you can redistribute it and/or modify
     11 * it under the terms of the GNU General Public License as published by
     12 * the Free Software Foundation; either version 2 of the License, or
     13 * (at your option) any later version.
     14 *
     15 * This program is distributed in the hope that it will be useful,
     16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     18 * GNU General Public License for more details.
     19 *
     20 * You should have received a copy of the GNU General Public License
     21 * along with this program; if not, write to the Free Software
     22 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
     23 *
     24 **********************************************************************/
     25
     26
    127#ifdef __WIN32__
    228#include "autoconf.h"
     
    2349
    2450void print_usage (char *program_name) {
    25     cerr << "usage: " << program_name << "database-name\n\n";
     51    cerr << "usage: " << program_name << " database-name\n\n";
    2652}
    2753
Note: See TracChangeset for help on using the changeset viewer.