# $Id: Makefile.in,v 1.3 2004/12/11 17:08:13 jan Exp $ # PREFIX=@prefix@ DOXYGEN=doxygen CC=gcc AR=ar -rc PERL=/usr/bin/perl -w LEX=@LEX@ YACC=@YACC@ LIBOPT= -L /usr/local/lib -L ./lib -ltm @LEXLIB@ @LIBS@ .SUFFIXES : .o .c .c.o: $(CC) $(CFLAGS) -DPREFIX=\"$(PREFIX)\" $(INCOPT) -o $*.o -c $< INCOPT= -I src/main/ -I src/omnivore/ -I src/valuetypes/ CFLAGS=-pg -ansi -pedantic -Wall #CFLAGS= -pg -ansi -pedantic -Wall -DNDEBUG #CFLAGS=-pg -ansi -pedantic -Wall #CFLAGS=-pg -ansi -pedantic -Wall -O2 -DNDEBUG OBJS_CORE=\ src/main/err.o \ src/main/assert.o \ src/main/trace.o \ src/main/mem.o \ src/main/tm.o \ src/main/util.o \ src/main/list.o \ src/main/stack.o \ src/main/table.o \ src/main/topicset.o \ src/main/model.o \ src/main/subject.o \ src/main/valuetype.o \ src/main/qlnode.o \ src/main/result.o \ src/main/topicmap.o \ src/main/transaction.o \ src/main/storage.o \ src/main/disclosureframework.o \ src/main/y.tab.o \ src/main/lex.yy.o \ src/main/wtm.o \ OBJS_OMNIVORE=\ src/omnivore/omnivore.o \ src/omnivore/procmodel.o \ src/omnivore/vstore_prof.o \ src/omnivore/wtm.o \ src/omnivore/iso2788.o \ OBJS_VTYPES=\ src/valuetypes/integer.o \ src/valuetypes/text.o \ src/valuetypes/asidp.o \ src/valuetypes/textset.o \ GGDGDG=\ src/topic.o \ src/vt_topicset.o \ src/text.o \ src/textset.o \ OBJS_WWW_DF=\ www-df/df.o \ www-df/tmadl_parse.o \ OBJS_MEMSTORE=\ src/stores/memstore/descriptor.o \ src/stores/memstore/metastore.o \ src/stores/memstore/propertystore.o \ src/stores/memstore/integerstore.o \ src/stores/memstore/textstore.o \ src/stores/memstore/asidpstore.o \ src/stores/memstore/textsetstore.o \ src/stores/memstore/textsetstore.simple.o \ OBJS_FILESTORE=\ src/stores/filestore/storage.o \ src/stores/filestore/tmfile.o \ src/stores/filestore/descriptor.o \ src/stores/filestore/metastore.o \ src/stores/filestore/page.o \ src/stores/filestore/metapage.o \ LIBOBJS=\ $(OBJS_CORE) \ $(OBJS_WWW_DF) \ $(OBJS_VTYPES) \ $(OBJS_MEMSTORE) \ $(OBJS_OMNIVORE) \ src/main/y.tab.c: src/main/tql.y cd src/main; $(YACC) -d tql.y; echo "#include \"tmqlnode.h\"" > tmp; cat y.tab.h >> tmp; mv tmp y.tab.h; cd ../../ src/main/lex.yy.c: src/main/tql.l cd src/main; $(LEX) tql.l; cd ../ src/main/lex.yy.o: src/main/lex.yy.c src/main/y.tab.h src/main/y.tab.o: src/main/y.tab.c lib/libtm.a: $(LIBOBJS) $(AR) lib/libtm.a $(LIBOBJS) # generate error handling source file from header file: src/main/err.c: src/main/tmerror.h helpers/make_err_c.pl cat src/main/tmerror.h | $(PERL) helpers/make_err_c.pl \ > src/main/err.c bin/tm: $(LIBOBJS) apps/tm.c gcc $(CFLAGS) -DPREFIX=\"$(PREFIX)\" apps/tm.c -o bin/tm $(INCOPT) $(LIBOPT); bin/test: $(LIBOBJS) apps/test.c gcc $(CFLAGS) apps/test.c -o bin/test $(INCOPT) $(LIBOPT); all: lib/libtm.a bin/tm clean: cleandoc rm -f core; \ rm -f gmon.out; \ rm -f log out; \ rm -f src/main/err.c \ rm -f $(LIBOBJS); \ rm -f lib/libtm.a \ rm -f bin/tm rm -f src/main/y.tab.h \ rm -f src/main/lex.yy.c \ rm -f src/main/y.tab.c \ rm -f src/main/y.tab.o \ cleandoc: rm -rf doc distclean: clean rm -f src/main/config.h; rm -f config.status config.cache config.log Makefile; rm -rf autom4te.cache install: if [ ! -e @prefix@/tmtk ]; then \ mkdir @prefix@/tmtk ; \ fi if [ ! -e @prefix@/tmtk/bin ]; then \ mkdir @prefix@/tmtk/bin ; \ fi if [ ! -e @prefix@/tmtk/lib ]; then \ mkdir @prefix@/tmtk/lib ; \ fi if [ ! -e @prefix@/tmtk/www-df ]; then \ mkdir @prefix@/tmtk/www-df ; \ fi if [ ! -e @prefix@/tmtk/include ]; then \ mkdir @prefix@/tmtk/include ; \ fi #if [ ! -e @prefix@/tmtk/maps ]; then \ # mkdir @prefix@/tmtk/maps ; \ #fi cp lib/libtm.a @prefix@/tmtk/lib ; cp src/main/*.h @prefix@/tmtk/include ; cp src/valuetypes/*.h @prefix@/tmtk/include ; cp src/omnivore/*.h @prefix@/tmtk/include ; cp -r www-df/schemas @prefix@/tmtk/www-df/ ; #cp -r www-df/topicmaps @prefix@/tmtk/www-df/ ; #cp -r maps/* @prefix@/tmtk/maps ; cp bin/tm @prefix@/tmtk/bin/ ; cp bin/tm /usr/local/bin/ ; cp bin/tm /usr/bin/ ; doc: if [ ! -e doc ]; then \ mkdir doc ; \ fi; $(DOXYGEN) src/main/Doxyfile_CAPI #$(DOXYGEN) Doxyfile_PyAPI