| 1 |
# Makefile for the Simple Sockets Library (C version) |
| 2 |
# |
| 3 |
# NASA -- Goddard Space Flight Center, Code 714.1 |
| 4 |
# Intelligent Robotics Laboratory |
| 5 |
# Robotics Branch |
| 6 |
# |
| 7 |
# Authors: Dr. Charles E. Campbell, Jr. |
| 8 |
# Terry McRoberts |
| 9 |
# |
| 10 |
# modified for OS/2 and watcom 11.0 |
| 11 |
# Using OS/2 Tookkit V4.5 from developer CDROM (OStk45) |
| 12 |
# |
| 13 |
# can create either for either 16 or 32 bit stack |
| 14 |
# although the 16 bit was not tested to work |
| 15 |
# |
| 16 |
# for TCP version 4 (16bit stack) change cFLAGS |
| 17 |
#cFLAGS = /bt=os2 /dos2 /l=os2flat /dTCPV40HDRS $(libs) |
| 18 |
# instead of the one below |
| 19 |
# |
| 20 |
# |
| 21 |
|
| 22 |
# change paths below as necessary |
| 23 |
|
| 24 |
.before |
| 25 |
SET INCLUDE=W:\WATCOM\H\OS2;W:\WATCOM\H;W:\WATCOM\SOM\INCLUDE;w:\os2tk45\som\include;w:\os2tk45\inc;w:\os2tk45\h\gl;w:\os2tk45\h;w:\os2tk45\h\libc;.; |
| 26 |
set include=$(%include)k:\srwork\sockets\cosmic\HDR; |
| 27 |
set lib=$(%lib);w:\watcom\lib386;w:\watcom\lib386\os2; |
| 28 |
set watcom=w:\watcom |
| 29 |
|
| 30 |
libs = k:\srwork\sockets\cosmic\smplskts.lib |
| 31 |
|
| 32 |
hdrroot = k:\srwork\sockets\cosmic\HDR\ |
| 33 |
|
| 34 |
|
| 35 |
# list of objects to create |
| 36 |
objs = Saccept.obj Sprintf.obj Stest.obj outofmem.obj & |
| 37 |
Sclose.obj Sprtskt.obj Stimeoutwait.obj rdcolor.obj & |
| 38 |
Sgets.obj Sputs.obj Svprintf.obj sprt.obj & |
| 39 |
Smaskwait.obj Sread.obj Swait.obj srmtrblk.obj & |
| 40 |
Smkskt.obj Sreadbytes.obj Swrite.obj stpblk.obj & |
| 41 |
Sopen.obj Srmsrvr.obj error.obj stpnxt.obj & |
| 42 |
Sopenv.obj Sscanf.obj fopenv.obj strnxtfmt.obj & |
| 43 |
Speek.obj cprt.obj Speername.obj Speeraddr.obj & |
| 44 |
Sinit.obj |
| 45 |
|
| 46 |
hdrs = $(hdrroot)sockets.h & |
| 47 |
$(hdrroot)xstdlib.h & |
| 48 |
$(hdrroot)xtdio.h & |
| 49 |
$(hdrroot)setproto.h & |
| 50 |
$(hdrroot)rdcolor.h |
| 51 |
|
| 52 |
CC = wcc386 |
| 53 |
cFLAGS = /bt=os2 /dos2 /dxCPV40HDRS |
| 54 |
|
| 55 |
# to convert C into executables |
| 56 |
|
| 57 |
.c.obj : .AUTODEPEND |
| 58 |
$(CC) $(CFLAGS) $[* |
| 59 |
|
| 60 |
#$(objs) :: $(hdrs) |
| 61 |
|
| 62 |
#all :: $(objs) |
| 63 |
|
| 64 |
$(libs) : $(objs) $(hdrs) |
| 65 |
wlib $(libs) -+$(objs) |