Support for building samples in a port, dbg-rlse, dll-stat specifc output path
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
b9930c63e3
commit
98de692c3a
@ -9,17 +9,36 @@
|
|||||||
# Use FINAL=1 argument to nmake to build final version with no debug info.
|
# Use FINAL=1 argument to nmake to build final version with no debug info.
|
||||||
|
|
||||||
# Set WXDIR for your system
|
# Set WXDIR for your system
|
||||||
WXDIR = $(WXWIN)
|
WXDIR=$(WXWIN)
|
||||||
|
|
||||||
WXUSINGDLL=0
|
|
||||||
|
|
||||||
!include $(WXDIR)\src\makeva.env
|
!include $(WXDIR)\src\makeva.env
|
||||||
|
|
||||||
PROGRAM=$D\minimal
|
#
|
||||||
OBJECTS = $(PROGRAM).obj
|
# Define which program this is and what it's path is and where to output to
|
||||||
|
#
|
||||||
|
PROGRAM=minimal
|
||||||
|
THISDIR=$(WXWIN)\samples\$(PROGRAM)
|
||||||
|
OPATH=$(THISDIR)\$D
|
||||||
|
|
||||||
!if [md $D]
|
#
|
||||||
|
# Make sure output directory is available
|
||||||
|
#
|
||||||
|
!if [md $(OPATH)]
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
|
#
|
||||||
|
# Standard definitions
|
||||||
|
#
|
||||||
|
PROGRC=$(THISDIR)\$(PROGRAM).rcO
|
||||||
|
OBJECTS=$(OPATH)\$(PROGRAM).obj
|
||||||
|
PROGRES=$(OPATH)\$(PROGRAM).res
|
||||||
|
PROGTARGET=$(OPATH)\$(PROGRAM).exe
|
||||||
|
|
||||||
|
.cpp{$OPATH}.obj:
|
||||||
|
@echo $<
|
||||||
|
icc @<<
|
||||||
|
$(CPPFLAGS) /Fo$@ /Tp $<
|
||||||
|
<<
|
||||||
|
|
||||||
!include $(WXDIR)\src\makeprog.va
|
!include $(WXDIR)\src\makeprog.va
|
||||||
|
|
||||||
|
@ -10,19 +10,37 @@
|
|||||||
# Use FINAL=1 argument to nmake to build final version with no debugging
|
# Use FINAL=1 argument to nmake to build final version with no debugging
|
||||||
# info
|
# info
|
||||||
|
|
||||||
all: $(PROGRAM).exe
|
#
|
||||||
|
# Define inference rules for compiling C++ files.
|
||||||
|
#
|
||||||
|
{$(THISDIR)}.cpp{$(OPATH)}.obj:
|
||||||
|
@echo $<
|
||||||
|
icc @<<
|
||||||
|
$(CPPFLAGS) /Fo$@ /Tp $<
|
||||||
|
$(THISDIR)\$(@B).cpp
|
||||||
|
<<
|
||||||
|
|
||||||
|
all: $(PROGTARGET)
|
||||||
|
|
||||||
wx:
|
wx:
|
||||||
cd $(WXDIR)\src\os2
|
cd $(WXDIR)\src\os2
|
||||||
nmake -f makefile.va FINAL=$(FINAL)
|
nmake -f makefile.va FINAL=$(FINAL)
|
||||||
# cd $(THISDIR)
|
cd $(THISDIR)
|
||||||
|
|
||||||
wxclean:
|
wxclean:
|
||||||
cd $(WXDIR)\src\os2
|
cd $(WXDIR)\src\os2
|
||||||
nmake -f makefile.va clean
|
nmake -f makefile.va clean
|
||||||
# cd $(THISDIR)
|
cd $(THISDIR)
|
||||||
|
|
||||||
$(PROGRAM).exe: $(DUMMYOBJ) $(WXLIB) $(OBJECTS) $(PROGRAM).res
|
$(PROGRAM).obj:: $(OPATH)\$(PROGRAM).obj
|
||||||
|
$(OPATH)\$(PROGRAM).obj: $(THISDIR)\$(PROGRAM).cpp
|
||||||
|
|
||||||
|
$(PROGRAM).res:: $(PROGRES)
|
||||||
|
$(PROGRES):
|
||||||
|
$(RC) -I $(WXDIR)\include -D __VISAGECPP__ -r $(PROGRC) $(PROGRES)
|
||||||
|
|
||||||
|
$(PROGRAM).exe:: $(PROGTARGET)
|
||||||
|
$(PROGTARGET): $(OBJECTS) $(PROGRES) $(DUMMYOBJ) $(WXLIB)
|
||||||
@echo " Link::Linker "
|
@echo " Link::Linker "
|
||||||
$(LINK) @<<
|
$(LINK) @<<
|
||||||
/B" $(LINKFLAGS)" /Fe$@
|
/B" $(LINKFLAGS)" /Fe$@
|
||||||
@ -30,15 +48,12 @@ $(PROGRAM).exe: $(DUMMYOBJ) $(WXLIB) $(OBJECTS) $(PROGRAM).res
|
|||||||
$(OBJECTS)
|
$(OBJECTS)
|
||||||
$(LIBS)
|
$(LIBS)
|
||||||
<<
|
<<
|
||||||
$(RC) $(PROGRAM).res $(PROGRAM).exe
|
$(RC) $(PROGRES) $(PROGTARGET)
|
||||||
|
|
||||||
$(PROGRAM).res : $(PROGRAM).rcO $(WXDIR)\include\wx\os2\wx.rc
|
|
||||||
$(RC) -I $(WXDIR)\include -D __VISAGECPP__ -r $(PROGRAM).rcO $(PROGRAM).res
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-erase $(OBJECTS)
|
-erase $(OBJECTS)
|
||||||
-erase *.exe
|
-erase $(OPATH)\*.exe
|
||||||
-erase *.obj
|
-erase $(OPATH)\*.obj
|
||||||
-erase *.res
|
-erase $(OPATH)\*.res
|
||||||
-erase *.map
|
-erase $(OPATH)\*.map
|
||||||
|
|
||||||
|
@ -19,8 +19,8 @@ OS2LIBFLAGS=/NOL /NOE
|
|||||||
WXDIR=$(WXWIN)
|
WXDIR=$(WXWIN)
|
||||||
|
|
||||||
# Set to where your UPM and LAN libs are
|
# Set to where your UPM and LAN libs are
|
||||||
UPMLIB=C:\OS2TK45
|
UPMLIB=C:\OS2TK45\LIB
|
||||||
NETLIB=C:\OS2TK45
|
NETLIB=C:\OS2TK45\LIB
|
||||||
TCPIP=C:\OS2TK45\LIB
|
TCPIP=C:\OS2TK45\LIB
|
||||||
|
|
||||||
WXSRC=$(WXDIR)\src\os2
|
WXSRC=$(WXDIR)\src\os2
|
||||||
|
Loading…
Reference in New Issue
Block a user