Path: utzoo!utgpu!watserv1!watmath!att!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!wuarchive!cs.utexas.edu!uunet!hsi!hsi86!mark From: mark@hsi86.hsi.com (Mark Sicignano) Newsgroups: comp.unix.programmer Subject: Re: Makefiles -- .c and .h Message-ID: <2600@hsi86.hsi.com> Date: 16 Nov 90 14:32:47 GMT References: <9011151442.AA02010@decpa.pa.dec.com> Reply-To: mark@hsi.com (Mark Sicignano) Organization: 3M Health Information Systems, Wallingford, CT. Lines: 19 Our cc program has a -M option that prints dependencies on stdout. This output is suitable to be included in a makefile. If I do a cc -M chmod.c This is the output I get: chmod.o: chmod.c chmod.o: /usr/include/stdio.h chmod.o: /usr/include/sys/types.h chmod.o: /usr/include/sys/stat.h chmod.o: /usr/include/sys/dir.h This should get you going in the right direction perhaps. -- Mark Sicignano ...!uunet!hsi!mark 3M Health Information Systems mark@hsi.com