LOAD_FLAG_PREFIX += $(shell wx-config --libs $(UNICODE_FLAG_ADD) )
endif
+LOAD_FLAG_PREFIX += -lwsock32 -lmswsock -shared
+
ifneq "$(USE_CURL)" ""
COMPILER_FLAGS += `curl-config --cflags`
LOAD_FLAG_SUFFIX += `curl-config --libs`
ifneq "$(USE_CURL)" ""
# # curl wants this win32 flag?
-# DEFINITIONS += _WIN32
+ DEFINITIONS += WIN32
LOCAL_HEADERS += $(THIRD_PARTY_DIR)/curl/include
LIBRARY_SEARCH_PATH += $(THIRD_PARTY_DIR)/curl/lib
# LIBS_USED += libcurl.dll.a
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.