comparison packages/pkgconf.tcl @ 46:797268ecc331 ecos-sw-1999-10-19

Merge from eCos master repository on 1999-10-19-18:55:31-BST
author jlarmour
date Tue, 19 Oct 1999 19:19:52 +0000
parents 41bd4f3a90de
children c38311975d4f
comparison
equal deleted inserted replaced
45:91d213c0da48 46:797268ecc331
5550 # the others. Therefore pkgconf.mak is included first, then 5550 # the others. Therefore pkgconf.mak is included first, then
5551 # the per-package file, and finally the makevars file. 5551 # the per-package file, and finally the makevars file.
5552 5552
5553 puts $file " 5553 puts $file "
5554 PACKAGE_RULES_FILE := \$(wildcard \$(BUILD_TREE)/pkgconf/\$(PACKAGE).mak) 5554 PACKAGE_RULES_FILE := \$(wildcard \$(BUILD_TREE)/pkgconf/\$(PACKAGE).mak)
5555 ifneq ($(PACKAGE_RULES_FILE),) 5555 ifneq (\$(PACKAGE_RULES_FILE),)
5556 include $(PACKAGE_RULES_FILE) 5556 include \$(PACKAGE_RULES_FILE)
5557 endif" 5557 endif"
5558 5558
5559 puts $file "\ninclude \$(BUILD_TREE)/pkgconf/makevars" 5559 puts $file "\ninclude \$(BUILD_TREE)/pkgconf/makevars"
5560 5560
5561 puts $file "\n# End of $filename" 5561 puts $file "\n# End of $filename"
5711 puts $makefile \ 5711 puts $makefile \
5712 " 5712 "
5713 include pkgconf/pkgconf.mak 5713 include pkgconf/pkgconf.mak
5714 .PHONY: default build clean tests headers" 5714 .PHONY: default build clean tests headers"
5715 5715
5716 puts $makefile "\nbuild: $(PREFIX)/lib/extras.o" 5716 puts $makefile "\nbuild: \$(PREFIX)/lib/extras.o"
5717 puts $makefile "\t@echo Build finished." 5717 puts $makefile "\t@echo Build finished."
5718 5718
5719 puts $makefile "\n$(PREFIX)/lib/extras.o: $(PREFIX)/lib/libextras.a" 5719 puts $makefile "\n\$(PREFIX)/lib/extras.o: \$(PREFIX)/lib/libextras.a"
5720 puts $makefile "\t$(CC) $(ARCHFLAGS) $(LDARCHFLAGS) -nostdlib -Wl,-r -Wl,--whole-archive $(PREFIX)/lib/libextras.a -o $(PREFIX)/lib/extras.o" 5720 puts $makefile "\t\$(CC) \$(ARCHFLAGS) \$(LDARCHFLAGS) -nostdlib -Wl,-r -Wl,--whole-archive \$(PREFIX)/lib/libextras.a -o \$(PREFIX)/lib/extras.o"
5721 5721
5722 puts $makefile "\n$(PREFIX)/lib/libextras.a: headers" 5722 puts $makefile "\n\$(PREFIX)/lib/libextras.a: headers"
5723 foreach src_dir $pkgconf::src_dirs { 5723 foreach src_dir $pkgconf::src_dirs {
5724 puts $makefile "\t\$(MAKE) -C $src_dir" 5724 puts $makefile "\t\$(MAKE) -C $src_dir"
5725 } 5725 }
5726 5726
5727 puts $makefile "\ntests: build" 5727 puts $makefile "\ntests: build"