home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
viscobv6.zip
/
vac22os2
/
ibmcobol
/
samples
/
toolkit
/
tcpiptk
/
sampdll
/
borland.mak
next >
Wrap
Text File
|
1996-11-19
|
4KB
|
89 lines
#********************************************************copyrite.xic******/
# /
# Licensed Materials - Property of IBM /
# IBM TCP/IP for OS/2 /
# (C) Copyright IBM Corporation. 1996. /
# /
# All rights reserved. /
# /
# US Government Users Restricted Rights - /
# Use, duplication or disclosure restricted by GSA ADP Schedule /
# Contract with IBM Corp. /
# /
#--------------------------------------------------------------------------/
# /
# DISCLAIMER OF WARRANTIES. The following [enclosed] code is /
# sample code created by IBM Corporation. This sample code is not /
# part of any standard or IBM product and is provided to you solely /
# for the purpose of assisting you in the development of your /
# applications. The code is provided "AS IS", without /
# warranty of any kind. IBM shall not be liable for any damages /
# arising out of your use of the sample code, even if they have been /
# advised of the possibility of such damages. /
# /
#--------------------------------------------------------------------------
# Make Directives
#--------------------------------------------------------------------------
.AUTODEPEND
.SUFFIXES: .obj .c
#--------------------------------------------------------------------------
# Make Macros
#--------------------------------------------------------------------------
BCOS2_DIR = D:\BCOS2
TOOLKITLIB = C:\TOOLKIT\LIB
STARTUP = $(BCOS2_DIR)\lib\c02.obj
STARTUPDLL = $(BCOS2_DIR)\lib\c02d.obj
LIB = $(BCOS2_DIR)\lib
INCLUDE = $(BCOS2_DIR)\include;C:\TOOLKIT\H
CC = bcc -c -v -w
LFLAGS = -c -x -v -ap /w-stk
LINK = tlink $(LFLAGS) -L$(LIB) $(STARTUP)
LINKDLL = tlink $(LFLAGS) -L$(LIB) $(STARTUPDLL)
LIBS = c2 + os2
MTLIBS = c2mt + os2
DLLLIBS = $(TOOLKITLIB)\so32dll+ \
$(TOOLKITLIB)\tcp32dll+ \
$(TOOLKITLIB)\os2386+ \
c2mt + os2
#-------------------------------------------------------------------
# Make Rules
#-------------------------------------------------------------------
.c.obj:
$(CC) $(CFLAGS) -I$(INCLUDE) {$< }
#===================================================================
# Explicit Rules
#===================================================================
ALL : sampdll.dll myprog.exe
clean:
-del *.obj
-del *.dll
-del *.exe
-del *.lib
#-------------------------------------------------------------------
# Dependancies of the make
#-------------------------------------------------------------------
myprog.obj: myprog.c
$(CC) -I$(INCLUDE) $(CFLAGS) /DOS2 myprog.c
myprog.exe: myprog.obj myprogb.def
$(LINK) myprog.obj,myprog.exe,,$(DLLLIBS),myprogb.def
sampdll.obj: sampdll.c sampdll.def
$(CC) -I$(INCLUDE) $(CFLAGS) /DOS2 sampdll.c
sampdll.dll: sampdll.obj sampdll.def
$(LINKDLL) sampdll.obj, sampdll.dll,,$(DLLLIBS), sampdllb.def;
#==<eof>============================================================