File: Makefile.dep

package info (click to toggle)
amoeba 1.1-21
  • links: PTS
  • area: contrib
  • in suites: squeeze
  • size: 1,168 kB
  • ctags: 1,448
  • sloc: cpp: 8,321; makefile: 173
file content (16 lines) | stat: -rw-r--r-- 346 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
DEPS = $(OBJS:.o=.d)

DEPCXX=$(CXX)
ifeq ($(DESTPLATFORM),linux)
  ifeq ($(LINUXVARIANT),icc)
    DEPCXX=g++-3.0
  endif
endif

%.d: %.cpp
	@echo Remaking dependencies for $< \(in $@\)...
	@$(SHELL) -ec '$(DEPCXX) -MM $(CPPFLAGS) $< \
		| sed '\''s,\($*\)\.o[ :]*,\1.o $@ : ,g'\'' > $@; \
		[ -s $@ ] || rm -f $@' # 2>/dev/null

-include $(DEPS)