Revision adcb2190

View differences:

common.mak
30 30
	$(CC) $(CPPFLAGS) $(CFLAGS) $(LIBOBJFLAGS) -Wno-unused -c -o $@ -x c $<
31 31

  
32 32
%.d: %.c
33
	$(DEPEND_CMD) > $@
33
	$(DEPEND_CMD)
34 34

  
35 35
%.d: %.S
36
	$(DEPEND_CMD) > $@
36
	$(DEPEND_CMD)
37 37

  
38 38
%.d: %.cpp
39
	$(DEPEND_CMD) > $@
39
	$(DEPEND_CMD)
40 40

  
41 41
%.o: %.d
42 42

  
configure
1296 1296

  
1297 1297
# gcc stupidly only outputs the basename of targets with -MM, but we need the
1298 1298
# full relative path for objects in subdirectories for non-recursive Make.
1299
DEPEND_CMD='$(DEPCC) $(DEPFLAGS) $< | sed -e "/^\#.*/d" -e "s,^[[:space:]]*$(*F)\\.o,$(@D)/$(*F).o,"'
1299
DEPEND_CMD='$(DEPCC) $(DEPFLAGS) $< | sed -e "/^\#.*/d" -e "s,^[[:space:]]*$(*F)\\.o,$(@D)/$(*F).o," > $@'
1300 1300
DEPFLAGS='$(CPPFLAGS) $(CFLAGS) -MM'
1301 1301

  
1302 1302
# find source path

Also available in: Unified diff