# Only use the WIN32 wxDirDialog if we have a recent
# version of Mingw32
ifeq ($(MINGW32),1)
- ifneq "$(findstring 2.95, $(MINGW32VERSION))" ""
+ ifneq "$(_GCC295)$(_GCC3)" ""
DIRDLGOBJ = $(MSWDIR)/dirdlg.$(OBJSUFF)
else
DIRDLGOBJ = $(GENDIR)/dirdlgg.$(OBJSUFF)
$(TIFFDIR)/tif_zip.o
ifeq ($(MINGW32),1)
- ifneq "$(findstring 2.95, $(MINGW32VERSION))" ""
+ ifneq "$(_GCC295)$(_GCC3)" ""
OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ) $(ADVANCEDOBJS)
else
OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ)
OBJECTS = $(MSWOBJS_BASE) $(COMMONOBJS_BASE) $(COMMONOBJS_BASEONLY) $(GENERICOBJS_BASE)
endif
-# MBN: if anyone has a better solution for this kludge, step
-# forward, *please*
-# this tests is we are on cygwin or not ( will _not_ work if you are using
-# ZSH on plain Win32, tought ); it uses the presence of "/"
-# in the PATH variable
-
# how do you do "VAR=\" ? BLEAGH!
BACKSLASH=$(subst a,\,a)
-ifeq (,$(findstring /,$(PATH)))
- IS_CYGWIN=0
+ifeq (,$(findstring $(OSTYPE),"cygwin!msys"))
PATH_SEPARATOR:=$(BACKSLASH)
PATH_SUBST=/
else
- IS_CYGWIN=1
PATH_SEPARATOR=/
PATH_SUBST:=$(BACKSLASH)
endif