Changeset 0dc7c0c in git
- Timestamp:
- Jun 20, 1997, 12:30:30 PM (27 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 974ce1dca728600855dac83c17ce1f8f1f4e04b3
- Parents:
- 1df4e6c4f9c26ac3482cf04502419f4f1283e2e9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/GNUmakefile.in
r1df4e6 r0dc7c0c 1 1 # @configure_input@ 2 # $Id: GNUmakefile.in,v 1. 1 1997-06-02 15:56:32schmidt Exp $2 # $Id: GNUmakefile.in,v 1.2 1997-06-20 10:30:30 schmidt Exp $ 3 3 # 4 4 # GNUmakefile - master makefile for factory. … … 25 25 gftabledir = @gftabledir@ 26 26 includedir = @includedir@ 27 tagtemplatedir =@tagtemplatedir@28 27 templatedir = @templatedir@ 29 28 … … 35 34 # 36 35 37 # files with version tag included (used to install factory)38 taglibfactory = @taglibfactory@39 taglibmem = @taglibmem@40 tagheaderfactory=@tagheaderfactory@41 tagfactoryconf =@tagfactoryconf@42 43 # raw file names (used to build factory)44 36 libfactory = @libfactory@ 45 37 libmem = @libmem@ … … 58 50 INSTALL_DATA = @INSTALL_DATA@ 59 51 INSTALL_PROGRAM=@INSTALL_PROGRAM@ 60 LN_S = @LN_S@61 52 RANLIB = @RANLIB@ 62 53 … … 109 100 $(DEFS) $(CPPFLAGS) $(CXXFLAGS) 110 101 111 # flags to translate tmpl_inst.cc102 # flags to translate ftmpl_inst.cc 112 103 TMPLCXXFLAGS = -Wall \ 113 104 -I. -I$(srcdir) \ … … 273 264 # factory template files 274 265 templatesrc := \ 275 array.cc \276 f actor.cc \277 list.cc \278 matrix.cc266 ftmpl_array.cc \ 267 ftmpl_factor.cc \ 268 ftmpl_list.cc \ 269 ftmpl_matrix.cc 279 270 templateincl := \ 280 array.h \281 f actor.h \282 f unctions.h \283 list.h \284 matrix.h271 ftmpl_array.h \ 272 ftmpl_factor.h \ 273 ftmpl_functions.h \ 274 ftmpl_list.h \ 275 ftmpl_matrix.h 285 276 286 277 # header templates … … 294 285 $(distfactorysrc) $(distmemmansrc) \ 295 286 $(addprefix templates/,$(templatesrc)) \ 296 readcf.cc tmpl_inst.cc287 readcf.cc ftmpl_inst.cc gengftables.cc 297 288 298 289 # all the C/C++ include files in the distribution … … 304 295 distfiles := \ 305 296 $(distsrc) $(distincl) $(hdrtemplsrc) \ 306 GNUmakefile.in configure.in acconfig.h stamp-h.in\307 config.h.in configure\297 GNUmakefile.in configure.in config.h.in configure \ 298 ChangeLog \ 308 299 bin/install-sh bin/makeheader bin/mkinstalldirs 309 300 … … 368 359 $(BISON) $< -o $@ 369 360 370 tmpl_inst.o:tmpl_inst.cc factoryconf.h factory.h \361 ftmpl_inst.o: ftmpl_inst.cc factoryconf.h factory.h \ 371 362 $(addprefix templates/,$(templatesrc)) \ 372 363 $(addprefix templates/,$(templateincl)) … … 374 365 375 366 gengftables.o: gengftables.cc factory.h cf_util.h gf_tabutil.h 376 377 gengftables: gengftables.o tmpl_inst.o cf mem 378 $(CXX) $< tmpl_inst.o -lcf -lcfmem $(TESTLDFLAGS) -o $@ 379 380 #! not ready yet (gengftables.cc not in the distribution yet) 367 @if test -z "$(filter mem,$(alltargets))" \ 368 || test -z "$(filter readcf.y,$(factorysrc))"; then \ 369 echo "You should configure --with-memman --enable-streamio"; \ 370 echo "to make gengftables."; \ 371 exit 1; \ 372 fi 373 $(CXX) -c $< $(LIBCXXFLAGS) -o $@ 374 375 gengftables: gengftables.o ftmpl_inst.o all 376 $(CXX) $< ftmpl_inst.o -lcf -lcfmem $(TESTLDFLAGS) -o $@ 377 381 378 gftables: gengftables 379 @echo "This command will take quite a long time to execute;" 380 @echo "maybe you want to get the tables directly via ftp (see" 381 @echo "INSTALL)." 382 382 $(MKINSTALLDIRS) gftables 383 383 ./gengftables … … 398 398 $(MKINSTALLDIRS) $(libdir) 399 399 $(MKINSTALLDIRS) $(includedir) 400 $(MKINSTALLDIRS) $(t agtemplatedir)401 $(INSTALL_DATA) $(libfactory) $(libdir)/$( taglibfactory)402 $(INSTALL_DATA) $(headerfactory) $(includedir)/$( tagheaderfactory)403 $(INSTALL_DATA) $(factoryconf) $(includedir)/$( tagfactoryconf)404 $(INSTALL_DATA) $(srcdir)/ tmpl_inst.cc $(tagtemplatedir)400 $(MKINSTALLDIRS) $(templatedir) 401 $(INSTALL_DATA) $(libfactory) $(libdir)/$(libfactory) 402 $(INSTALL_DATA) $(headerfactory) $(includedir)/$(headerfactory) 403 $(INSTALL_DATA) $(factoryconf) $(includedir)/$(factoryconf) 404 $(INSTALL_DATA) $(srcdir)/ftmpl_inst.cc $(templatedir) 405 405 for file in $(templatesrc) $(templateincl); do \ 406 $(INSTALL_DATA) $(srcdir)/templates/$$file $(t agtemplatedir); \406 $(INSTALL_DATA) $(srcdir)/templates/$$file $(templatedir); \ 407 407 done 408 408 409 # remove old links before installing new ones410 installcflinks: installcf411 -rm -f $(libdir)/$(libfactory)412 -rm -f $(includedir)/$(headerfactory)413 -rm -f $(includedir)/$(factoryconf)414 -rm -f $(templatedir)415 $(LN_S) $(libdir)/$(taglibfactory) $(libdir)/$(libfactory)416 $(LN_S) $(includedir)/$(tagheaderfactory) $(includedir)/$(headerfactory)417 $(LN_S) $(includedir)/$(tagfactoryconf) $(includedir)/$(factoryconf)418 $(LN_S) $(tagtemplatedir) $(templatedir)419 420 # remove old link before installing new one421 409 installmem: mem 422 410 $(MKINSTALLDIRS) $(libdir) 423 -rm -f $(libdir)/$(libmem) 424 $(INSTALL_DATA) $(libmem) $(libdir)/$(taglibmem) 425 $(LN_S) $(libdir)/$(taglibmem) $(libdir)/$(libmem) 411 $(INSTALL_DATA) $(libmem) $(libdir)/$(libmem) 426 412 427 413 installgftables: gftables … … 438 424 439 425 uninstallcf: 440 -rm -f $(libdir)/$(taglibfactory) 441 -rm -f $(includedir)/$(tagheaderfactory) 442 -rm -f $(includedir)/$(tagfactoryconf) 443 -for file in $(templatesrc) $(templateincl) tmpl_inst.cc; do \ 444 rm -f $(tagtemplatedir)/$$file; \ 426 -for file in $(templatesrc) $(templateincl) ftmpl_inst.cc; do \ 427 rm -f $(templatedir)/$$file; \ 445 428 done 429 -rm -f $(templatedir)/ftmpl_inst.cc 430 -rm -f $(includedir)/$(factoryconf) 431 -rm -f $(includedir)/$(headerfactory) 432 -rm -f $(libdir)/$(libfactory) 433 -rmdir $(templatedir) 434 -rmdir $(includedir) 446 435 -rmdir $(libdir) 447 -rmdir $(tagtemplatedir)448 -rmdir $(includedir)449 450 uninstallcflinks: uninstallcf451 -rm -f $(libdir)/$(libfactory)452 -rm -f $(includedir)/$(headerfactory)453 -rm -f $(includedir)/$(factoryconf)454 -rm -f $(templatedir)455 -rmdir $(libdir)456 -rmdir $(includedir)457 436 458 437 uninstallmem: 459 -rm -f $(libdir)/$(taglibmem)460 438 -rm -f $(libdir)/$(libmem) 461 439 -rmdir $(libdir) … … 468 446 # 469 447 470 dist: $(srcdir)/readcf.cc \ 471 $(srcdir)/config.h.in $(srcdir)/stamp-h.in \ 472 $(srcdir)/configure 448 dist: $(srcdir)/readcf.cc $(srcdir)/configure 473 449 rm -f $(distname).tar.gz 474 450 rm -rf $(distname) 475 451 $(MKINSTALLDIRS) $(distname)/templates 476 452 $(MKINSTALLDIRS) $(distname)/bin 453 #! better use ln instead of cp 477 454 for file in $(distfiles); do \ 478 #! better use ln instead of cp479 455 cp $(srcdir)/$$file $(distname)/$$file; \ 480 456 done … … 489 465 490 466 clean: 491 -rm -f $(libfactory) $(libmem) \467 -rm -f $(libfactory) $(libmem) gengftables \ 492 468 factoryconf.h factory.h *.o *.d core *~ 493 469 … … 512 488 @echo "This command is intended for *real* maintainers to use; it" 513 489 @echo "deletes files that requires the autoconf tools to rebuild." 514 -rm -f $(srcdir)/configure $(srcdir)/config.h.in $(srcdir)/stamp-h.in490 -rm -f $(srcdir)/configure 515 491 516 492 # … … 534 510 535 511 $(srcdir)/configure: configure.in 536 cd $(srcdir) && autoconf 537 538 # autoheader might not change config.h.in, so touch a stamp file 539 $(srcdir)/config.h.in: stamp-h.in 540 @: 541 542 $(srcdir)/stamp-h.in: configure.in acconfig.h 543 cd $(srcdir) && autoheader 544 echo timestamp > $(srcdir)/stamp-h.in 512 -cd $(srcdir) && autoconf 545 513 546 514 # seems gmake needs at least a trivial command. otherwise all
Note: See TracChangeset
for help on using the changeset viewer.