Changeset 1074


Ignore:
Timestamp:
Sep 10, 2011, 2:57:13 PM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

qmake: Makefile.os2-g++: Handle dependencies properly.

This supersedes r1066. We need this to properly rebuild qmake
w/o make clean if some include file changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qmake/Makefile.os2-g++

    r1066 r1074  
    154154        @echo "Out of date, please rerun configure"
    155155
    156 define DEL_ONE
     156define DEL_O
    157157clean::
    158         -del $(1) >nul 2>&1
     158        -del $(1) >nul 2>&1
    159159endef
    160160
    161 $(foreach file,$(OBJECTS) $(ADDCLEAN),$(eval $(call DEL_ONE,$(file))))
     161$(foreach file,$(OBJECTS) $(ADDCLEAN),$(eval $(call DEL_O,$(file))))
    162162
    163163distclean:: clean
     
    166166.SUFFIXES: .cpp .c
    167167
     168
     169
    168170.c.obj:
    169171        $(CXX) -c $(CFLAGS) -o $@ $<
     172
    170173
    171174.cpp.obj:
    172175        $(CXX) -c $(CXXFLAGS) -o $@ $<
     176
    173177
    174178define SRC_TO_OBJ_RULE
    175179$(call SRC_TO_OBJ,$(1)): $(1)
    176180        $(CXX) -c $(CXXFLAGS) -o $$@ $$<
     181
    177182endef
    178183
    179184$(foreach src,$(SOURCES),$(eval $(call SRC_TO_OBJ_RULE,$(src))))
    180 
    181 # individual dependencies
    182 $(OBJECTS_DIR)\qlibraryinfo.obj: $(BUILD_PATH)\src\corelib\global\qconfig.cpp
Note: See TracChangeset for help on using the changeset viewer.