[Cook] non-existent includes
    Aryeh M. Friedman 
    aryeh at m-net.arbornet.org
       
    Wed Oct 30 20:01:54 EST 2002
    
    
  
If I need to do the following order of things:
(assuming I am doing it by hand in this example)
In tools/utils
cc -c str.c 
ar rv libutils.a str.o
install libutils.a ../lib
install includes.h ../include/util.h
In tools/foobar
cc -I../include -c foo.c
[note foo.c has #include <utils.h> in it]
cc foo.o -o ../bin/foo
Now here is what cook does:
cc -c tools/utils/str.c -o tools/utils/str.o
cc -I tools/include -c tools/foo/foo.c -o tools/foo/foo.c	
[It doesn't relize it needs to cook tools/lib/libutils.a FIRST!!!]
[output:
tools/nmcc/nmcc.c:14: utils.h: No such file or directory
]
[not done due to errors:
	ar rv tools/utils/libutils.a tools/utils/str.o
	install tools/utils/libutils.a tools/lib
	install tools/utils/includes.h tools/include/utils.h
	cc tools/foo/foo.o -o tools/foo/foo
	install tools/foo/foo tools/bin
]
If you need to see the actual Howto.cook I have placed it at
http://www.silverbergs.org:8169/~aryeh/cookfile
Now my question is how do I force it to cook tools/lib/libutils.a before it 
attempts to cook tools/foo/foo.c.  
	--Aryeh
    
    
More information about the Cook-users
mailing list