Makefile
changeset 2301 d9ed2d848023
parent 2300 543211f07c9e
child 2302 e9b122730a41
equal deleted inserted replaced
2300:543211f07c9e 2301:d9ed2d848023
  1034 # first compilation round as we just build everything at that time anyway,
  1034 # first compilation round as we just build everything at that time anyway,
  1035 # therefore we do not need to watch deps.
  1035 # therefore we do not need to watch deps.
  1036 
  1036 
  1037 %.o: %.c $(MAKE_CONFIG) endian_target.h table/strings.h
  1037 %.o: %.c $(MAKE_CONFIG) endian_target.h table/strings.h
  1038 	$(call cmd,c_compile)
  1038 	$(call cmd,c_compile)
  1039 	@mv $(<:%.c=%.d) $(<:%.c=.deps/%.d)
  1039 	@[ -f $(<:%.c=%.d) ] && mv $(<:%.c=%.d) $(<:%.c=.deps/%.d) || mv $(*F).d $(<:%.c=.deps/%.d)
  1040 
  1040 
  1041 %.o: %.cpp  $(MAKE_CONFIG) endian_target.h table/strings.h
  1041 %.o: %.cpp  $(MAKE_CONFIG) endian_target.h table/strings.h
  1042 	$(call cmd,cxx_compile)
  1042 	$(call cmd,cxx_compile)
  1043 	@mv $(<:%.cpp=%.d) $(<:%.cpp=.deps/%.d)
  1043 	@[ -f $(<:%.cpp=%.d) ] && mv $(<:%.cpp=%.d) $(<:%.cpp=.deps/%.d) || mv $(*F).d $(<:%.cpp=.deps/%.d)
  1044 
  1044 
  1045 %.o: %.m  $(MAKE_CONFIG) endian_target.h table/strings.h
  1045 %.o: %.m  $(MAKE_CONFIG) endian_target.h table/strings.h
  1046 	$(call cmd,objc_compile)
  1046 	$(call cmd,objc_compile)
  1047 	@mv $(<:%.m=%.d) $(<:%.m=.deps/%.d)
  1047 	@[ -f $(<:%.m=%.d) ] && mv $(<:%.m=%.d) $(<:%.m=.deps/%.d) || mv $(*F).d $(<:%.m=.deps/%.d)
  1048 
  1048 
  1049 # Silence stale header dependencies
  1049 # Silence stale header dependencies
  1050 %.h:
  1050 %.h:
  1051 	@true
  1051 	@true
  1052 
  1052