File: MAKEFILE.os2

package info (click to toggle)
dmucs 0.6.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 3,240 kB
  • sloc: ansic: 5,053; sh: 3,557; cpp: 2,397; makefile: 64; perl: 26
file content (65 lines) | stat: -rw-r--r-- 2,052 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Makefile for the Simple Sockets Library (C version)
#
#  NASA --   Goddard Space Flight Center, Code 714.1
#            Intelligent Robotics Laboratory
#            Robotics Branch
#
#  Authors:  Dr. Charles E. Campbell, Jr.
#            Terry McRoberts
#
#  modified for OS/2 and watcom 11.0
#  Using OS/2 Tookkit V4.5 from developer CDROM (OStk45)
#
#  can create either for either 16 or 32 bit stack
#  although the 16 bit was not tested to work
#
#  for TCP version 4 (16bit stack) change cFLAGS
#cFLAGS = /bt=os2 /dos2 /l=os2flat /dTCPV40HDRS  $(libs)
#  instead of the one below
#
#

# change paths below as necessary

.before
  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;.;
  set include=$(%include)k:\srwork\sockets\cosmic\HDR;
  set lib=$(%lib);w:\watcom\lib386;w:\watcom\lib386\os2;
  set watcom=w:\watcom

libs = k:\srwork\sockets\cosmic\smplskts.lib

hdrroot = k:\srwork\sockets\cosmic\HDR\


# list of objects to create
objs =  Saccept.obj    Sprintf.obj    Stest.obj      outofmem.obj   &
        Sclose.obj     Sprtskt.obj  Stimeoutwait.obj rdcolor.obj    &
        Sgets.obj      Sputs.obj      Svprintf.obj   sprt.obj       &
        Smaskwait.obj  Sread.obj      Swait.obj      srmtrblk.obj   &
        Smkskt.obj     Sreadbytes.obj Swrite.obj     stpblk.obj     &
        Sopen.obj      Srmsrvr.obj    error.obj      stpnxt.obj     &
        Sopenv.obj     Sscanf.obj     fopenv.obj     strnxtfmt.obj  &
        Speek.obj      cprt.obj       Speername.obj  Speeraddr.obj  &
        Sinit.obj

hdrs = $(hdrroot)sockets.h  &
       $(hdrroot)xstdlib.h  &
       $(hdrroot)xtdio.h    &
       $(hdrroot)setproto.h &
       $(hdrroot)rdcolor.h

CC  = wcc386
cFLAGS = /bt=os2 /dos2  /dxCPV40HDRS

# to convert C into executables

.c.obj : .AUTODEPEND
    $(CC) $(CFLAGS) $[*

#$(objs) :: $(hdrs)

#all :: $(objs)

$(libs) : $(objs) $(hdrs)
    wlib $(libs) -+$(objs)