[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: work4 - dependencies
- From: David Burgess <dburgess@...>
- Date: Fri, 31 Dec 2004 11:30:17 +1000
A question for the masters of makefiles.
The work4 make file has dependencies of the style
lapi.obj:lapi.c lua.h luaconf.h lapi.h lobject.h llimits.h ldebug.h \
lstate.h ltm.h lzio.h lmem.h ldo.h lfunc.h lgc.h lstring.h ltable.h \
lundump.h lvm.h
Alternatively one could write (this is how MS DevStudio generates
dependencies);
lapi.obj:lapi.c
lapi.c : lua.h luaconf.h lapi.h lobject.h llimits.h ldebug.h \
lstate.h ltm.h lzio.h lmem.h ldo.h lfunc.h lgc.h lstring.h ltable.h \
lundump.h lvm.h
Which is the better of these two approaches?
DB