X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b403ab005c463ecd3246d864b345a3814f7be4f2..5b2f31eb30be576374064413b9d0f63a1bf8c110:/src/msw/makebase.vc diff --git a/src/msw/makebase.vc b/src/msw/makebase.vc index 24cdcf1cf8..557c57ab7e 100644 --- a/src/msw/makebase.vc +++ b/src/msw/makebase.vc @@ -23,7 +23,6 @@ wxUSE_GUI = 0 THISDIR=$(WXWIN)\src\msw LIBTARGET=$(WXLIB) -DUMMYOBJ=$D/dummy.obj # This one overrides the others, to be consistent with the settings in setup.h MINIMAL_WXWINDOWS_SETUP=0 @@ -140,15 +139,22 @@ MSWOBJS = ..\msw\$D\dde.obj \ OBJECTS = $(COMMONOBJS) $(MSWOBJS) +ARCHINCDIR=$(WXDIR)\lib\base$(INCEXT) +SETUP_H=$(ARCHINCDIR)\wx\setup.h + # Normal, static library -#all: setuph dirs $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) png zlib xpm jpeg tiff $(LIBTARGET) -all: setuph dirs $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) zlib $(LIBTARGET) +#all: dirs $(SETUP_H) $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) png zlib xpm jpeg tiff $(LIBTARGET) +all: dirs $(SETUP_H) $(DUMMYOBJ) $(OBJECTS) $(PERIPH_TARGET) zlib $(LIBTARGET) + -setuph: +$(WXDIR)\include\wx\msw\setup.h: cd $(WXDIR)\include\wx\msw if not exist setup.h copy setup0.h setup.h cd $(WXDIR)\src\msw +$(SETUP_H): $(WXDIR)\include\wx\msw\setup.h + copy $(WXDIR)\include\wx\msw\setup.h $@ + dirs: $(MSWDIR)\$D $(COMMDIR)\$D $D: @@ -162,16 +168,16 @@ $(MSWDIR)\$D: ### Static library -$(WXDIR)\lib\$(WXLIBNAME).lib: $D\dummy.obj $(OBJECTS) +$(WXDIR)\lib\$(WXLIBNAME).lib: $(DUMMYOBJ) $(OBJECTS) -erase $(LIBTARGET) $(implib) @<< -out:$@ -machine:$(CPU) -$(OBJECTS) $D\dummy.obj $(PERIPH_LIBS) +$(OBJECTS) $(DUMMYOBJ) $(PERIPH_LIBS) << -$D\dummy.obj: dummy.$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(WXDIR)\include\wx\msw\setup.h - cl $(CPPFLAGS) $(MAKEPRECOMP) /Fo$D\dummy.obj /c /Tp dummy.cpp +$(DUMMYOBJ): $(DUMMY).$(SRCSUFF) $(WXDIR)\include\wx\wx.h $(SETUP_H) + cl $(CPPFLAGS) $(MAKEPRECOMP) /Fo$(DUMMYOBJ) /c /Tp $(DUMMY).cpp ######################################################## ..\common\$D\y_tab.obj: ..\common\y_tab.c ..\common\lex_yy.c @@ -185,7 +191,7 @@ $(CPPFLAGS2) /c ..\common\y_tab.c -DUSE_DEFINE -DYY_USE_PROTOS /Fo$@ ..\common\lex_yy.c: ..\common\doslex.c copy "..\common"\doslex.c "..\common"\lex_yy.c -$(OBJECTS): $(WXDIR)/include/wx/setup.h +$(OBJECTS): $(SETUP_H) ..\common\$D\unzip.obj: ..\common\unzip.c cl @<<