# This file was automatically generated by tmake
# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE B32.T!

#
# File:     makebase.b32
# Author:   Julian Smart
# Created:  1998
# Updated:  Michael Fielding, 2002
# Copyright:
#
# "%W% %G%"
#
# Makefile : Builds wxWindows library wxbase.lib for MS Windows,
# and Borland C++ (32-bit).

# BCCDIR now defined in ../makeb32.env

!if "$(WXWIN)" == ""
!error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
!endif

WXDIR = $(WXWIN)
THISDIR = $(WXDIR)\src\msw

# Set all these to 1 if you want to build a dynamic library
!if "$(DLL)" == "1"
WXMAKINGDLL=1
WXBUILDDLL=1
!endif

wxUSE_GUI=0

!include $(WXDIR)\src\makeb32.env

PERIPH_LIBS=
PERIPH_TARGET=zlib regex $(PERIPH_TARGET)
PERIPH_CLEAN_TARGET=clean_zlib clean_regex $(PERIPH_CLEAN_TARGET)

!if "$(DLL)" == "0"
DUMMY=dummy
!else
DUMMY=dummydll
LIBS= cw32mti import32 ole2w32 odbc32 zlib regex
!endif

LIBTARGET=$(WXLIB)

GENDIR=..\generic
COMMDIR=..\common
HTMLDIR=..\html
OLEDIR=.\ole
MSWDIR=.

DOCDIR = $(WXDIR)\docs

COMMONOBJS = \
    $(OBJ_PATH)\appbase.obj \
		$(OBJ_PATH)\clntdata.obj \
		$(OBJ_PATH)\cmdline.obj \
		$(OBJ_PATH)\config.obj \
		$(OBJ_PATH)\datetime.obj \
		$(OBJ_PATH)\datstrm.obj \
		$(OBJ_PATH)\db.obj \
		$(OBJ_PATH)\dbtable.obj \
		$(OBJ_PATH)\dircmn.obj \
		$(OBJ_PATH)\dynarray.obj \
		$(OBJ_PATH)\dynlib.obj \
		$(OBJ_PATH)\dynload.obj \
		$(OBJ_PATH)\encconv.obj \
		$(OBJ_PATH)\event.obj \
		$(OBJ_PATH)\extended.obj \
		$(OBJ_PATH)\ffile.obj \
		$(OBJ_PATH)\file.obj \
		$(OBJ_PATH)\fileconf.obj \
		$(OBJ_PATH)\filefn.obj \
		$(OBJ_PATH)\filename.obj \
		$(OBJ_PATH)\filesys.obj \
		$(OBJ_PATH)\fmapbase.obj \
		$(OBJ_PATH)\fs_inet.obj \
		$(OBJ_PATH)\fs_mem.obj \
		$(OBJ_PATH)\fs_zip.obj \
		$(OBJ_PATH)\ftp.obj \
		$(OBJ_PATH)\hash.obj \
		$(OBJ_PATH)\hashmap.obj \
		$(OBJ_PATH)\http.obj \
		$(OBJ_PATH)\intl.obj \
		$(OBJ_PATH)\ipcbase.obj \
		$(OBJ_PATH)\list.obj \
		$(OBJ_PATH)\log.obj \
		$(OBJ_PATH)\longlong.obj \
		$(OBJ_PATH)\memory.obj \
		$(OBJ_PATH)\mimecmn.obj \
		$(OBJ_PATH)\module.obj \
		$(OBJ_PATH)\msgout.obj \
		$(OBJ_PATH)\mstream.obj \
		$(OBJ_PATH)\object.obj \
		$(OBJ_PATH)\process.obj \
		$(OBJ_PATH)\protocol.obj \
		$(OBJ_PATH)\regex.obj \
		$(OBJ_PATH)\sckaddr.obj \
		$(OBJ_PATH)\sckfile.obj \
		$(OBJ_PATH)\sckipc.obj \
		$(OBJ_PATH)\sckstrm.obj \
		$(OBJ_PATH)\socket.obj \
		$(OBJ_PATH)\stopwatch.obj \
		$(OBJ_PATH)\strconv.obj \
		$(OBJ_PATH)\stream.obj \
		$(OBJ_PATH)\string.obj \
		$(OBJ_PATH)\sysopt.obj \
		$(OBJ_PATH)\textbuf.obj \
		$(OBJ_PATH)\textfile.obj \
		$(OBJ_PATH)\tokenzr.obj \
		$(OBJ_PATH)\txtstrm.obj \
		$(OBJ_PATH)\unzip.obj \
		$(OBJ_PATH)\url.obj \
		$(OBJ_PATH)\utilscmn.obj \
		$(OBJ_PATH)\variant.obj \
		$(OBJ_PATH)\wfstream.obj \
		$(OBJ_PATH)\wxchar.obj \
		$(OBJ_PATH)\zipstrm.obj \
		$(OBJ_PATH)\zstream.obj \
		$(OBJ_PATH)\init.obj

MSWOBJS = $(OBJ_PATH)\basemsw.obj \
		$(OBJ_PATH)\dde.obj \
		$(OBJ_PATH)\dir.obj \
		$(OBJ_PATH)\gsocket.obj \
		$(OBJ_PATH)\gsockmsw.obj \
		$(OBJ_PATH)\main.obj \
		$(OBJ_PATH)\mimetype.obj \
		$(OBJ_PATH)\mslu.obj \
		$(OBJ_PATH)\regconf.obj \
		$(OBJ_PATH)\registry.obj \
		$(OBJ_PATH)\snglinst.obj \
		$(OBJ_PATH)\thread.obj \
		$(OBJ_PATH)\utils.obj \
		$(OBJ_PATH)\utilsexc.obj \
		$(OBJ_PATH)\volume.obj

OBJECTS = $(COMMONOBJS) $(MSWOBJS)

default:    wx

wx:    $(ARCHINCDIR)\wx makesetuph makearchsetuph makeoutdir $(CFG) $(DUMMY).obj $(OBJECTS) $(PERIPH_TARGET) $(LIBTARGET)

all:    wx

makeoutdir:
    -mkdir $(OBJ_PATH)

# Copy the in-CVS setup0.h to setup.h if necessary
makesetuph:
     cd $(WXDIR)\include\wx\msw
     if not exist setup.h copy setup0.h setup.h
     cd $(WXDIR)\src\msw

# Copy include\wx\msw\setup.h to the architecture-specific location
makearchsetuph:
     copy $(WXDIR)\include\wx\msw\setup.h $(ARCHSETUPH)
     cd $(WXDIR)\src\msw

$(ARCHINCDIR)\wx:
    -mkdir $(ARCHINCDIR)
    -mkdir $(ARCHINCDIR)\wx
    -erase $(CFG)

!if "$(DLL)" == "0"

$(LIBTARGET): $(DUMMY).obj $(OBJECTS)
    -erase $(WXLIB)
    tlib "$(WXLIB)" /P1024 @&&!
+$(OBJECTS:.obj =.obj +) +$(PERIPH_LIBS:.lib =.lib +)
!

!else

$(LIBTARGET): $(DUMMY).obj $(OBJECTS)
    -erase $(WXLIB)
    -erase $(WXDLL)
        $(LINK) $(LINK_FLAGS) /L$(WXLIBDIR);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk /v @&&!
c0d32.obj $(OBJECTS)
$(WXLIBDIR)\$(WXLIBNAME)
nul
$(PERIPH_LIBS) $(LIBS)
wxb32
!
        implib -c $(LIBTARGET) $(WXLIBDIR)\$(WXLIBNAME).dll
!endif

dummy.obj: dummy.$(SRCSUFF) $(LOCALHEADERS) $(BASEHEADERS) $(WXDIR)\include\wx\wx.h
dummydll.obj: dummydll.$(SRCSUFF) $(LOCALHEADERS) $(BASEHEADERS) $(WXDIR)\include\wx\wx.h version.res

version.res:
    brc32 -r -i$(WXDIR)\include\ $(MSWDIR)\version.rc

$(OBJ_PATH)\basemsw.obj: $(MSWDIR)\basemsw.$(SRCSUFF)

$(OBJ_PATH)\dde.obj: $(MSWDIR)\dde.$(SRCSUFF)

$(OBJ_PATH)\dir.obj: $(MSWDIR)\dir.$(SRCSUFF)

$(OBJ_PATH)\gsocket.obj: $(MSWDIR)\gsocket.c

$(OBJ_PATH)\gsockmsw.obj: $(MSWDIR)\gsockmsw.c

$(OBJ_PATH)\main.obj: $(MSWDIR)\main.$(SRCSUFF)

$(OBJ_PATH)\mimetype.obj: $(MSWDIR)\mimetype.$(SRCSUFF)

$(OBJ_PATH)\mslu.obj: $(MSWDIR)\mslu.$(SRCSUFF)

$(OBJ_PATH)\regconf.obj: $(MSWDIR)\regconf.$(SRCSUFF)

$(OBJ_PATH)\registry.obj: $(MSWDIR)\registry.$(SRCSUFF)

$(OBJ_PATH)\snglinst.obj: $(MSWDIR)\snglinst.$(SRCSUFF)

$(OBJ_PATH)\thread.obj: $(MSWDIR)\thread.$(SRCSUFF)

$(OBJ_PATH)\utils.obj: $(MSWDIR)\utils.$(SRCSUFF)

$(OBJ_PATH)\utilsexc.obj: $(MSWDIR)\utilsexc.$(SRCSUFF)

$(OBJ_PATH)\volume.obj: $(MSWDIR)\volume.$(SRCSUFF)



########################################################
# Common objects (always compiled)

$(OBJ_PATH)\appbase.obj: $(COMMDIR)\appbase.$(SRCSUFF)

$(OBJ_PATH)\clntdata.obj: $(COMMDIR)\clntdata.$(SRCSUFF)

$(OBJ_PATH)\cmdline.obj: $(COMMDIR)\cmdline.$(SRCSUFF)

$(OBJ_PATH)\config.obj: $(COMMDIR)\config.$(SRCSUFF)

$(OBJ_PATH)\datetime.obj: $(COMMDIR)\datetime.$(SRCSUFF)

$(OBJ_PATH)\datstrm.obj: $(COMMDIR)\datstrm.$(SRCSUFF)

$(OBJ_PATH)\db.obj: $(COMMDIR)\db.$(SRCSUFF)

$(OBJ_PATH)\dbtable.obj: $(COMMDIR)\dbtable.$(SRCSUFF)

$(OBJ_PATH)\dircmn.obj: $(COMMDIR)\dircmn.$(SRCSUFF)

$(OBJ_PATH)\dynarray.obj: $(COMMDIR)\dynarray.$(SRCSUFF)

$(OBJ_PATH)\dynlib.obj: $(COMMDIR)\dynlib.$(SRCSUFF)

$(OBJ_PATH)\dynload.obj: $(COMMDIR)\dynload.$(SRCSUFF)

$(OBJ_PATH)\encconv.obj: $(COMMDIR)\encconv.$(SRCSUFF)

$(OBJ_PATH)\event.obj: $(COMMDIR)\event.$(SRCSUFF)

$(OBJ_PATH)\extended.obj: $(COMMDIR)\extended.c

$(OBJ_PATH)\ffile.obj: $(COMMDIR)\ffile.$(SRCSUFF)

$(OBJ_PATH)\file.obj: $(COMMDIR)\file.$(SRCSUFF)

$(OBJ_PATH)\fileconf.obj: $(COMMDIR)\fileconf.$(SRCSUFF)

$(OBJ_PATH)\filefn.obj: $(COMMDIR)\filefn.$(SRCSUFF)

$(OBJ_PATH)\filename.obj: $(COMMDIR)\filename.$(SRCSUFF)

$(OBJ_PATH)\filesys.obj: $(COMMDIR)\filesys.$(SRCSUFF)

$(OBJ_PATH)\fmapbase.obj: $(COMMDIR)\fmapbase.$(SRCSUFF)

$(OBJ_PATH)\fs_inet.obj: $(COMMDIR)\fs_inet.$(SRCSUFF)

$(OBJ_PATH)\fs_mem.obj: $(COMMDIR)\fs_mem.$(SRCSUFF)

$(OBJ_PATH)\fs_zip.obj: $(COMMDIR)\fs_zip.$(SRCSUFF)

$(OBJ_PATH)\ftp.obj: $(COMMDIR)\ftp.$(SRCSUFF)

$(OBJ_PATH)\hash.obj: $(COMMDIR)\hash.$(SRCSUFF)

$(OBJ_PATH)\hashmap.obj: $(COMMDIR)\hashmap.$(SRCSUFF)

$(OBJ_PATH)\http.obj: $(COMMDIR)\http.$(SRCSUFF)

$(OBJ_PATH)\intl.obj: $(COMMDIR)\intl.$(SRCSUFF)

$(OBJ_PATH)\ipcbase.obj: $(COMMDIR)\ipcbase.$(SRCSUFF)

$(OBJ_PATH)\list.obj: $(COMMDIR)\list.$(SRCSUFF)

$(OBJ_PATH)\log.obj: $(COMMDIR)\log.$(SRCSUFF)

$(OBJ_PATH)\longlong.obj: $(COMMDIR)\longlong.$(SRCSUFF)

$(OBJ_PATH)\memory.obj: $(COMMDIR)\memory.$(SRCSUFF)

$(OBJ_PATH)\mimecmn.obj: $(COMMDIR)\mimecmn.$(SRCSUFF)

$(OBJ_PATH)\module.obj: $(COMMDIR)\module.$(SRCSUFF)

$(OBJ_PATH)\msgout.obj: $(COMMDIR)\msgout.$(SRCSUFF)

$(OBJ_PATH)\mstream.obj: $(COMMDIR)\mstream.$(SRCSUFF)

$(OBJ_PATH)\object.obj: $(COMMDIR)\object.$(SRCSUFF)

$(OBJ_PATH)\process.obj: $(COMMDIR)\process.$(SRCSUFF)

$(OBJ_PATH)\protocol.obj: $(COMMDIR)\protocol.$(SRCSUFF)

$(OBJ_PATH)\regex.obj: $(COMMDIR)\regex.$(SRCSUFF)

$(OBJ_PATH)\sckaddr.obj: $(COMMDIR)\sckaddr.$(SRCSUFF)

$(OBJ_PATH)\sckfile.obj: $(COMMDIR)\sckfile.$(SRCSUFF)

$(OBJ_PATH)\sckipc.obj: $(COMMDIR)\sckipc.$(SRCSUFF)

$(OBJ_PATH)\sckstrm.obj: $(COMMDIR)\sckstrm.$(SRCSUFF)

$(OBJ_PATH)\socket.obj: $(COMMDIR)\socket.$(SRCSUFF)

$(OBJ_PATH)\stopwatch.obj: $(COMMDIR)\stopwatch.$(SRCSUFF)

$(OBJ_PATH)\strconv.obj: $(COMMDIR)\strconv.$(SRCSUFF)

$(OBJ_PATH)\stream.obj: $(COMMDIR)\stream.$(SRCSUFF)

$(OBJ_PATH)\string.obj: $(COMMDIR)\string.$(SRCSUFF)

$(OBJ_PATH)\sysopt.obj: $(COMMDIR)\sysopt.$(SRCSUFF)

$(OBJ_PATH)\textbuf.obj: $(COMMDIR)\textbuf.$(SRCSUFF)

$(OBJ_PATH)\textfile.obj: $(COMMDIR)\textfile.$(SRCSUFF)

$(OBJ_PATH)\tokenzr.obj: $(COMMDIR)\tokenzr.$(SRCSUFF)

$(OBJ_PATH)\txtstrm.obj: $(COMMDIR)\txtstrm.$(SRCSUFF)

$(OBJ_PATH)\unzip.obj: $(COMMDIR)\unzip.c

$(OBJ_PATH)\url.obj: $(COMMDIR)\url.$(SRCSUFF)

$(OBJ_PATH)\utilscmn.obj: $(COMMDIR)\utilscmn.$(SRCSUFF)

$(OBJ_PATH)\variant.obj: $(COMMDIR)\variant.$(SRCSUFF)

$(OBJ_PATH)\wfstream.obj: $(COMMDIR)\wfstream.$(SRCSUFF)

$(OBJ_PATH)\wxchar.obj: $(COMMDIR)\wxchar.$(SRCSUFF)

$(OBJ_PATH)\zipstrm.obj: $(COMMDIR)\zipstrm.$(SRCSUFF)

$(OBJ_PATH)\zstream.obj: $(COMMDIR)\zstream.$(SRCSUFF)

$(OBJ_PATH)\init.obj: $(COMMDIR)\init.$(SRCSUFF)




all_utils:
    cd $(WXDIR)\utils
    ${MAKE} -f makefile.b32
    cd $(WXDIR)\src\msw

all_samples:
    cd $(WXDIR)\samples
    ${MAKE} -f makefile.b32
    cd $(WXDIR)\src\msw

all_execs:
    cd $(WXDIR)\utils
    ${MAKE} -f makefile.b32 all_execs
    cd $(WXDIR)\src\msw



zlib:   $(CFG)
        cd $(WXDIR)\src\zlib
        ${MAKE} -f makefile.b32 wxUSE_GUI=0 lib
        cd $(WXDIR)\src\msw

clean_zlib:
        cd $(WXDIR)\src\zlib
        ${MAKE} -f makefile.b32 clean
        cd $(WXDIR)\src\msw


regex:   $(CFG)
        cd $(WXDIR)\src\regex
        ${MAKE} -f makefile.b32 wxUSE_GUI=0 lib
        cd $(WXDIR)\src\msw

clean_regex:
        cd $(WXDIR)\src\regex
        ${MAKE} -f makefile.b32 clean
        cd $(WXDIR)\src\msw



$(CFG): makebase.b32
    copy &&!
-Hc
-H=$(WXDIR)\src\msw\wx32.csm
-3
-d
-a1 # byte alignment
-R-
-X
-w-par
-w-aus
-w-hid # virtual function A hides virtual function B
-tWM
-tWC

-I$(ARCHINCDIR);$(WXINC);$(BCCDIR)\include;$(WXDIR)/src/generic;$(WXDIR)/src/png;$(WXDIR)/src/jpeg;$(WXDIR)/src/zlib;$(WXDIR)/src/tiff;$(THISDIR)
-I$(WXDIR)\include\wx\msw\gnuwin32

-L$(BCCDIR)\lib;$(BCCDIR)\lib\psdk
-D__WXWIN__
-D__WXMSW__
-D__WINDOWS__
-DWIN32
$(OPT)
$(DEBUG_FLAGS)
$(WIN95FLAG)
! $(CFG)

clean: $(PERIPH_CLEAN_TARGET)
    -$(RM) $(WXLIBDIR)\*.tds
    -$(RM) $(WXLIBDIR)\*.il?
    -$(RM) $(OBJ_PATH)\*.obj
    -$(RM) $(OBJ_PATH)\*.pch
    -$(RM) $(OBJ_PATH)\*.csm
    -$(RM) $(OBJ_PATH)\"wx32.#??"

cleancfg:
    -$(RM) $(OBJ_PATH)\*.cfg


cleanall: clean cleancfg


self:
    cd $(WXWIN)\distrib\msw\tmake
    perl -S tmake -tb32base wxwin.pro -o makebase.b32
    copy makebase.b32 $(WXWIN)\src\msw