X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/457814b5aa2ee5c83abc65a6aee2a3ebcb1af34f..470252df3c26d9c2d00cdbba46e43285720240ed:/samples/dialogs/makefile.bcc?ds=sidebyside diff --git a/samples/dialogs/makefile.bcc b/samples/dialogs/makefile.bcc index fb3bcc4b7b..08e7d45590 100644 --- a/samples/dialogs/makefile.bcc +++ b/samples/dialogs/makefile.bcc @@ -1,74 +1,19 @@ # # File: makefile.bcc # Author: Julian Smart -# Created: 1993 +# Created: 1998 # Updated: -# Copyright: (c) 1993, AIAI, University of Edinburgh # -# "%W% %G%" -# -# Makefile : Builds dialogs example (DOS). - -!if "$(BCCDIR)" == "" -!error You must define the BCCDIR variable in autoexec.bat, e.g. BCCDIR=d:\bc4 -!endif +# Builds a BC++ 16-bit sample !if "$(WXWIN)" == "" !error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx !endif WXDIR = $(WXWIN) -!include $(WXDIR)\src\makebcc.env - -THISDIR = $(WXDIR)\samples\dialogs -WXLIB = $(WXDIR)\lib\wx.lib -LIBS=$(WXLIB) mathwl cwl import -INC=-I$(WXDIR)\include\base -I$(WXDIR)\include\msw -CFG=$(WXDIR)\src\wxwin.cfg - -!ifndef FINAL -FINAL=0 -!endif - -!if "$(FINAL)" == "0" -#LINKFLAGS=/v /Vt /Twe /s /L$(WXDIR)\lib;$(BCCDIR)\lib -LINKFLAGS=/Vt /Twe /s /L$(WXDIR)\lib;$(BCCDIR)\lib -OPT = -Od -DEBUG_FLAGS= -v -!else -LINKFLAGS=/Twe /L$(WXDIR)\lib;$(BCCDIR)\lib -OPT = -O2 -DEBUG_FLAGS= -!endif -CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG) - -OBJECTS = dialogs.obj - -dialogs: dialogs.exe - -all: dialogs.exe - -dialogs.exe: $(WXLIB) dialogs.obj dialogs.def dialogs.res - tlink $(LINKFLAGS) @&&! -c0wl.obj dialogs.obj -dialogs -nul -$(LIBS) -dialogs.def -! - rc -31 -K dialogs.res - -.$(SRCSUFF).obj: - bcc $(CPPFLAGS) -c {$< } -dialogs.obj: dialogs.$(SRCSUFF) +TARGET=dialogs +OBJECTS=$(TARGET).obj -dialogs.res : dialogs.rc $(WXDIR)\include\msw\wx.rc - rc -r /i$(BCCDIR)\include /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa dialogs +!include $(WXDIR)\src\makeprog.bcc -clean: - -erase *.obj - -erase *.exe - -erase *.res - -erase *.map - -erase *.rws