endif
DEFINITIONS += __BUILD_STATIC_APPLICATION__=t
TARGETS = unpacker_stub.exe
-#ifeq "$(OP_SYSTEM)" "WIN32"
ifeq "$(COMPILER)" "VISUAL_CPP"
LIBS_USED += libcmt.lib shlwapi.lib zlib.lib
LOAD_FLAG_PREFIX += -nodefaultlib:msvcrt.lib
endif
endif
-ifneq "$(GENDEPS)" ""
- EXTRA_FIRST_TARGETS += gendeps
-endif
+# if we are cleaning up, then do not generate dependency file.
+ifeq "$(CLEAN)" ""
+ ifneq "$(GENDEPS)" ""
+ EXTRA_FIRST_TARGETS += gendeps
+ endif
# only do the deps generation for makefiles that are properly marked.
ifneq "$(findstring __BUILD_STATIC_APPLICATION__, $(DEFINITIONS))" ""
GENERATED_DEPS_LIST = $(TARGETS:%.exe=%.gendeps)
endif
+endif
+
# Make sure that the directory for objects exists.
ACTUAL_FIRST_TARGETS = check_requirements $(EXTRA_FIRST_TARGETS) $(VERSION_TARGET) $(FIRST_TARGETS) pre_compilation
# includes the auto-dependency information. the dependency file is checked
# for being up-to-date. if not, it gets rebuilt and the make is restarted.
-ifeq "$(NO_DEPS)" ""
- include $(DEPS_FILE)
+ifeq "$(CLEAN)" ""
+ ifeq "$(NO_DEPS)" ""
+ include $(DEPS_FILE)
+ endif
endif
# preserves intermediate files from being deleted.
@echo Whacking [$(CLEANUPS)]
$(HIDESH) -c '\
echo the other cleans were: $(OTHER_CLEANS); \
-echo the clean list is: $(CLEANUPS); \
+echo the cleanup removal list is: $(CLEANUPS); \
if [ ! -z "$(CLEANUPS)" ]; then \
for i in $(CLEANUPS) nonexistentishfileforlist; do \
rm -rf "$$i"; \