# Makefile for Borland C++ 3.1 Compilers
#
# PB-GNU PB2INET ProBoard PEX Version
# Copyright (C) 1994 by John Maddox
#
# This file is part of the PB-GNU PB2INET.
#
# PB-GNU PB2INET is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2.
#
# PB-GNU PB2INET is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with PB-GNU PB2INET; see the file COPYING.  If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#


.AUTODEPEND

.PATH.obj = .\

CC = bcc +PB2INET.CFG
TLINK = tlink
LIBPATH = C:\BC4\PBLIB2\INC
INCLUDEPATH = C:\BC4\PBLIB2\INC

.c.obj:
  $(CC) -c {$< }

.cpp.obj:
  $(CC) -c {$< }

EXE_dependencies =  \
 $(LIBPATH)\pb_sdk.obj \
 pb2inet.obj

pb2inet.pex: pb2inet.cfg $(EXE_dependencies) pb2inet.lnk
   tlink $(LIBPATH)\pb_sdk.obj @pb2inet.lnk, pb2inet.pex,,, /n /C /x

pb2inet.obj: pb2inet.cfg pb2inet.cpp

pb2inet.lnk: makefile
  copy &&|
pb2inet.obj
| pb2inet.lnk

pb2inet.cfg: makefile
  copy &&|
-ml
-DPB_SDK
-I$(INCLUDEPATH)
-L$(LIBPATH)
| pb2inet.cfg

#clean:
#        del *.obj
