8 $(SILENT)mkdir -p `dirname $@`
10 $(SILENT)$(CC) $(CFLAGS) -c $< -o $@
13 $(SILENT)mkdir -p `dirname $@`
15 $(SILENT)$(CC) $(CFLAGS) -c $< -o $@
17 # The echo stuff last in the dep update shell magic is to prevent any compiler
18 # errors/warnings to cause an error code to get returned and thus stop the
21 # This script checks for the presence of $(BUILDDIR)/lang.h and if it doesn't
22 # alreay exist, it is created. This is because lots of files include this
23 # *generated* file and if it doesn't exist when we generate the deps it is no
24 # good. There's a -MG compiler option to cover for this case, but it doesn't
25 # play nicely into this as it then adds a dependency to the lang.h file
26 # without the proper path.
28 $(DEPFILE): $(SOURCES)
29 $(SILENT)mkdir -p `dirname $(DEPFILE)`
30 $(SILENT)rm -f $(DEPFILE)
31 $(SILENT)(for each in $(SOURCES) x; do \
32 if test "$$each" = "credits.c"; then \
33 del="$$del$(BUILDDIR)/credits.raw"; \
34 touch $(BUILDDIR)/credits.raw; \
36 if test "x" != "$$each"; then \
37 obj=`echo $$each | sed -e 's/\.[cS]/.o/'`; \
38 $(CC) -MG -MM -MT "$(OBJDIR)/$$obj" $(CFLAGS) $$each 2>/dev/null; \
40 if test -n "$$del"; then \
44 done | sed -e "s:[^[:space:]]*lang.h:$(OBJDIR)/lang.o:" > $(DEPFILE); \
45 echo "oo" > /dev/null )
48 $(SILENT)(for d in $(DIRS); do \
49 etags -o $(OBJDIR)/TAGS -a $$d/*.[ch]; \