]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/controls/makefile.bcc
new VC++ templates and project files generated from them: now use only one
[wxWidgets.git] / samples / controls / makefile.bcc
index 19344434c5e98bdbbc4358a0ce3ac4be1713e9f2..400c6539d25c76908c18d0bce51dbee09cc01526 100644 (file)
@@ -1,73 +1,19 @@
 #
 # File:                makefile.bcc
 # Author:      Julian Smart
-# Created:     1993
+# Created:     1998
 # Updated:     
-# Copyright:   (c) 1993, AIAI, University of Edinburgh
 #
-# "%W% %G%"
-#
-# Makefile : Builds controls 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\controls
-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 /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 = controls.obj
-
-controls:    controls.exe
-
-all:    controls.exe
-
-controls.exe:    $(WXLIB) controls.obj controls.def controls.res
-        tlink $(LINKFLAGS) @&&!
-c0wl.obj controls.obj
-controls
-nul
-$(LIBS)
-controls.def
-!
-        rc -31 -K controls.res
-
-.$(SRCSUFF).obj:
-       bcc $(CPPFLAGS) -c {$< }
 
-controls.obj:      controls.$(SRCSUFF)
+TARGET=controls
+OBJECTS=$(TARGET).obj
 
-controls.res :      controls.rc $(WXDIR)\include\msw\wx.rc
-    rc -r /i$(BCCDIR)\include /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa controls
+!include $(WXDIR)\src\makeprog.bcc
 
-clean:
-        -erase *.obj
-        -erase *.exe
-        -erase *.res
-        -erase *.map
-        -erase *.rws