summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/cvs/os2/watcom.mak
blob: 1d79c2a981b87c841076a736b286fff4fd2c0cfc (plain)
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# Makefile for OS/2 (Watcom-C) for use with the watcom make.
# Written 11/96 by Ullrich von Bassewitz (uz@musoftware.com)
#
# This program 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; either version 2, or (at your option)
# any later version.
#
# This program 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.

# The directory, where the IBM TCP/IP developers toolkit is installed. As far
# as I remember, c:\mptn is the default location. If it is not, it is still
# a good choice :-)
tcpip_dir       = c:\mptn
tcpip_libdir    = $(tcpip_dir)\lib
tcpip_incdir    = $(tcpip_dir)\inc

# Directory for source files and objects
srcdir          = .
top_srcdir      = ..
lib_dir         = $(top_srcdir)\lib
cvs_srcdir      = $(top_srcdir)\src
zlib_dir        = $(top_srcdir)\zlib

# Define the stuff used for building the executable
CC = WCC386
LD = WLINK
CFLAGS = -bm -bt=OS2 -I$(srcdir) -I$(lib_dir) -I$(cvs_srcdir) -I$(zlib_dir) &
        -DIBM_CPP -DHAVE_CONFIG_H -DTCPIP_IBM -d1 -onatx -zp4 -5s -fpi87 -zq &
        -w2 -ze -I$(tcpip_incdir)

# Tell the make where the C files are located
.c:     $(srcdir);$(lib_dir);$(cvs_srcdir);$(zlib_dir)

# Somewhat modified generic rule for .obj files. Don't put the .obj file into
# the current directory, use the source directory instead.
.c.obj: .AUTODEPEND
  $(CC) $(CFLAGS) -fo=$*.obj $^*

# object files from OS/2 sources
OS2_OBJECTS = &
        $(srcdir)\mkdir.obj &
        $(srcdir)\pwd.obj &
        $(srcdir)\filesubr.obj &
        $(srcdir)\run.obj &
        $(srcdir)\stripslash.obj &
        $(srcdir)\rcmd.obj &
        $(srcdir)\waitpid.obj &
        $(srcdir)\popen.obj &
        $(srcdir)\porttcp.obj &
        $(srcdir)\getpass.obj

# object files from ..\src
COMMON_OBJECTS = &
        $(cvs_srcdir)\add.obj &
        $(cvs_srcdir)\admin.obj &
        $(cvs_srcdir)\buffer.obj &
        $(cvs_srcdir)\checkin.obj &
        $(cvs_srcdir)\checkout.obj &
        $(cvs_srcdir)\classify.obj &
        $(cvs_srcdir)\client.obj &
        $(cvs_srcdir)\commit.obj &
        $(cvs_srcdir)\create_adm.obj &
        $(cvs_srcdir)\cvsrc.obj &
        $(cvs_srcdir)\diff.obj &
        $(cvs_srcdir)\edit.obj &
        $(cvs_srcdir)\entries.obj &
        $(cvs_srcdir)\error.obj &
        $(cvs_srcdir)\expand_path.obj &
        $(cvs_srcdir)\fileattr.obj &
        $(cvs_srcdir)\find_names.obj &
        $(cvs_srcdir)\hash.obj &
        $(cvs_srcdir)\history.obj &
        $(cvs_srcdir)\ignore.obj &
        $(cvs_srcdir)\import.obj &
        $(cvs_srcdir)\lock.obj &
        $(cvs_srcdir)\log.obj &
        $(cvs_srcdir)\login.obj &
        $(cvs_srcdir)\logmsg.obj &
        $(cvs_srcdir)\main.obj &
        $(cvs_srcdir)\mkmodules.obj &
        $(cvs_srcdir)\modules.obj &
        $(cvs_srcdir)\myndbm.obj &
        $(cvs_srcdir)\no_diff.obj &
        $(cvs_srcdir)\parseinfo.obj &
        $(cvs_srcdir)\patch.obj &
        $(cvs_srcdir)\rcs.obj &
        $(cvs_srcdir)\rcscmds.obj &
        $(cvs_srcdir)\recurse.obj &
        $(cvs_srcdir)\release.obj &
        $(cvs_srcdir)\remove.obj &
        $(cvs_srcdir)\repos.obj &
        $(cvs_srcdir)\root.obj &
        $(cvs_srcdir)\rtag.obj &
        $(cvs_srcdir)\scramble.obj &
        $(cvs_srcdir)\server.obj &
        $(cvs_srcdir)\status.obj &
        $(cvs_srcdir)\subr.obj &
        $(cvs_srcdir)\tag.obj &
        $(cvs_srcdir)\update.obj &
        $(cvs_srcdir)\watch.obj &
        $(cvs_srcdir)\wrapper.obj &
        $(cvs_srcdir)\vers_ts.obj &
        $(cvs_srcdir)\version.obj &
        $(cvs_srcdir)\zlib.obj
# end of $COMMON_OBJECTS

# objects from ..\lib
LIB_OBJECTS = &
        $(lib_dir)\getopt.obj &
        $(lib_dir)\getopt1.obj &
        $(lib_dir)\getline.obj &
        $(lib_dir)\getwd.obj &
        $(lib_dir)\savecwd.obj &
        $(lib_dir)\sighandle.obj &
        $(lib_dir)\yesno.obj &
        $(lib_dir)\vasprintf.obj &
        $(lib_dir)\xgetwd.obj &
        $(lib_dir)\md5.obj &
        $(lib_dir)\fnmatch.obj &
        $(lib_dir)\regex.obj &
        $(lib_dir)\getdate.obj &
        $(lib_dir)\valloc.obj

ZLIB_OBJECTS = &
        $(zlib_dir)\adler32.obj &
        $(zlib_dir)\compress.obj &
        $(zlib_dir)\crc32.obj &
        $(zlib_dir)\uncompr.obj &
        $(zlib_dir)\deflate.obj &
        $(zlib_dir)\trees.obj &
        $(zlib_dir)\zutil.obj &
        $(zlib_dir)\inflate.obj &
        $(zlib_dir)\infblock.obj &
        $(zlib_dir)\inftrees.obj &
        $(zlib_dir)\infcodes.obj &
        $(zlib_dir)\infutil.obj &
        $(zlib_dir)\inffast.obj

OBJECTS = $(COMMON_OBJECTS) $(LIB_OBJECTS) $(OS2_OBJECTS) $(ZLIB_OBJECTS)

cvs.exe:        $(OBJECTS)
        $(LD) SYSTEM os2v2 DEBUG all NAME cvs.exe OPTION dosseg &
        OPTION stack=32K FILE $(cvs_srcdir)\*.obj,$(lib_dir)\*.obj, &
        $(srcdir)\*.obj,$(zlib_dir)\*.obj &
        LIBRARY $(tcpip_libdir)\tcp32dll.lib, &
        $(tcpip_libdir)\so32dll.lib

strip:  cvs.exe         .SYMBOLIC
        -wstrip cvs.exe