#! native wxDirDlg can't be compiled due to GnuWin32/OLE limitations,
#! so take the generic version
if ( $wxGeneric{$file} =~ /\b(PS|G|U|16)\b/ ) {
- next unless $file =~ /^dirdlgg\./;
+ next #! unless $file =~ /^dirdlgg\./;
}
$file =~ s/cp?p?$/\$(OBJSUFF)/;
OLEDIR = $(WXDIR)/src/msw/ole
MSWDIR = $(WXDIR)/src/msw
+PNGLIB = $(WXDIR)/lib/libpng.a
+ZLIBLIB = $(WXDIR)/lib/libzlib.a
+JPEGLIB = $(WXDIR)/lib/libjpeg.a
+
DOCDIR = $(WXDIR)\docs
+# Only use the WIN32 wxDirDialog if we have a recent
+# version of Mingw32
+ifeq ($(MINGW32),1)
+ ifeq ($(MINGW32VERSION),2.95)
+ DIRDLGOBJ = $(MSWDIR)/dirdlg.$(OBJSUFF)
+ else
+ DIRDLGOBJ = $(GENDIR)/dirdlgg.$(OBJSUFF)
+ endif
+else
+ DIRDLGOBJ = $(GENDIR)/dirdlgg.$(OBJSUFF)
+endif
+
GENERICOBJS = \
#$ ExpandList("WXGENERICOBJS");
$(XPMDIR)/simx.o $(XPMDIR)/wrffrdat.o\
$(XPMDIR)/wrffrp.o $(XPMDIR)/wrffri.o
-OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) \
- $(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS) # $(ADVANCEDOBJS) # $(XPMOBJECTS)
-
ifeq ($(MINGW32),1)
ifeq ($(MINGW32VERSION),2.95)
- OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) \
- $(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS) $(ADVANCEDOBJS) # $(XPMOBJECTS)
+ OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ) $(ADVANCEDOBJS) # $(XPMOBJECTS)
else
- OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) \
- $(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS) # $(XPMOBJECTS)
+ OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ) # $(XPMOBJECTS)
endif
else
- OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) \
- $(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS) # $(XPMOBJECTS)
+ OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ) # $(XPMOBJECTS)
endif
-all: $(OBJECTS) $(WXLIB)
+all: $(OBJECTS) $(WXLIB) $(ZLIBLIB) $(JPEGLIB) $(PNGLIB)
$(WXLIB): $(OBJECTS) $(EXTRAOBJS)
ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
$(RANLIB) $@
+$(ZLIBLIB): $(ZLIBOBJS)
+ ar $(AROPTIONS) $@ $(ZLIBOBJS)
+ $(RANLIB) $@
+
+$(PNGLIB): $(PNGOBJS)
+ ar $(AROPTIONS) $@ $(PNGOBJS)
+ $(RANLIB) $@
+
+$(JPEGLIB): $(JPEGOBJS)
+ ar $(AROPTIONS) $@ $(JPEGOBJS)
+ $(RANLIB) $@
+
$(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h
$(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
$(CCLEX) -c $(CPPFLAGS) -DUSE_DEFINE -DYY_USE_PROTOS -o $@ $(COMMDIR)/y_tab.c
$(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c
- copy ..\common\dosyacc.c ..\common\y_tab.c
+ $(COPY) ..\\common\\dosyacc.c ..\\common\\y_tab.c
$(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c
- copy ..\common\doslex.c ..\common\lex_yy.c
+ $(COPY) ..\\common\\doslex.c ..\\common\\lex_yy.c
# Replace lex with flex if you run into compilation
# problems with lex_yy.c. See also note about LEX_SCANNER
# mv y.tab.c $(COMMDIR)/y_tab.c
clean:
- rm -f *.o
- rm -f *.bak
- rm -f core
- rm -f ..\common\y_tab.c
- rm -f ..\common\lex_yy.c
- rm -f ..\common\*.o
- rm -f ..\common\*.bak
- rm -f ..\generic\*.o
- rm -f ..\generic\*.bak
- rm -f ..\html\*.o
- rm -f ..\png\*.o
- rm -f ..\png\*.bak
- rm -f ..\zlib\*.o
- rm -f ..\zlib\*.bak
- rm -f ..\jpeg\*.o
- rm -f ..\..\lib\libwx.a
+ -$(RM) *.o
+ -$(RM) ole/*.o
+ -$(RM) *.bak
+ -$(RM) core
+ -$(RM) ../common/y_tab.c
+ -$(RM) ../common/lex_yy.c
+ -$(RM) ../common/*.o
+ -$(RM) ../common/*.bak
+ -$(RM) ../generic/*.o
+ -$(RM) ../generic/*.bak
+ -$(RM) ../html/*.o
+ -$(RM) ../png/*.o
+ -$(RM) ../png/*.bak
+ -$(RM) ../zlib/*.o
+ -$(RM) ../zlib/*.bak
+ -$(RM) ../jpeg/*.o
+ -$(RM) ../../lib/libwx.a
cleanall: clean