1# For making f2c.lib (here called watf2c.lib) with WATCOM C/C++ . 2# Invoke with "wmake -u -f makefile.wat" . 3# In the CFLAGS line below, "-bt=nt" is for NT and W9x. 4# With WATCOM, it is necessary to explicitly load main.obj . 5 6# To get signed zeros in write statements on IEEE-arithmetic systems, 7# add -DSIGNED_ZEROS to the CFLAGS assignment below and add signbit.obj 8# to the objects in the "w =" list below. 9 10CC = wcc386 11CFLAGS = -fpd -DMSDOS -DUSE_CLOCK -DNO_ONEXIT -bt=nt 12 13.c.obj: 14 $(CC) $(CFLAGS) $*.c 15 16w = \ 17 abort_.obj \ 18 backspac.obj \ 19 c_abs.obj \ 20 c_cos.obj \ 21 c_div.obj \ 22 c_exp.obj \ 23 c_log.obj \ 24 c_sin.obj \ 25 c_sqrt.obj \ 26 cabs.obj \ 27 close.obj \ 28 d_abs.obj \ 29 d_acos.obj \ 30 d_asin.obj \ 31 d_atan.obj \ 32 d_atn2.obj \ 33 d_cnjg.obj \ 34 d_cos.obj \ 35 d_cosh.obj \ 36 d_dim.obj \ 37 d_exp.obj \ 38 d_imag.obj \ 39 d_int.obj \ 40 d_lg10.obj \ 41 d_log.obj \ 42 d_mod.obj \ 43 d_nint.obj \ 44 d_prod.obj \ 45 d_sign.obj \ 46 d_sin.obj \ 47 d_sinh.obj \ 48 d_sqrt.obj \ 49 d_tan.obj \ 50 d_tanh.obj \ 51 derf_.obj \ 52 derfc_.obj \ 53 dfe.obj \ 54 dolio.obj \ 55 dtime_.obj \ 56 due.obj \ 57 ef1asc_.obj \ 58 ef1cmc_.obj \ 59 endfile.obj \ 60 erf_.obj \ 61 erfc_.obj \ 62 err.obj \ 63 etime_.obj \ 64 exit_.obj \ 65 f77_aloc.obj \ 66 f77vers.obj \ 67 fmt.obj \ 68 fmtlib.obj \ 69 ftell_.obj \ 70 getarg_.obj \ 71 getenv_.obj \ 72 h_abs.obj \ 73 h_dim.obj \ 74 h_dnnt.obj \ 75 h_indx.obj \ 76 h_len.obj \ 77 h_mod.obj \ 78 h_nint.obj \ 79 h_sign.obj \ 80 hl_ge.obj \ 81 hl_gt.obj \ 82 hl_le.obj \ 83 hl_lt.obj \ 84 i77vers.obj \ 85 i_abs.obj \ 86 i_dim.obj \ 87 i_dnnt.obj \ 88 i_indx.obj \ 89 i_len.obj \ 90 i_mod.obj \ 91 i_nint.obj \ 92 i_sign.obj \ 93 iargc_.obj \ 94 iio.obj \ 95 ilnw.obj \ 96 inquire.obj \ 97 l_ge.obj \ 98 l_gt.obj \ 99 l_le.obj \ 100 l_lt.obj \ 101 lbitbits.obj \ 102 lbitshft.obj \ 103 lread.obj \ 104 lwrite.obj \ 105 main.obj \ 106 open.obj \ 107 pow_ci.obj \ 108 pow_dd.obj \ 109 pow_di.obj \ 110 pow_hh.obj \ 111 pow_ii.obj \ 112 pow_ri.obj \ 113 pow_zi.obj \ 114 pow_zz.obj \ 115 r_abs.obj \ 116 r_acos.obj \ 117 r_asin.obj \ 118 r_atan.obj \ 119 r_atn2.obj \ 120 r_cnjg.obj \ 121 r_cos.obj \ 122 r_cosh.obj \ 123 r_dim.obj \ 124 r_exp.obj \ 125 r_imag.obj \ 126 r_int.obj \ 127 r_lg10.obj \ 128 r_log.obj \ 129 r_mod.obj \ 130 r_nint.obj \ 131 r_sign.obj \ 132 r_sin.obj \ 133 r_sinh.obj \ 134 r_sqrt.obj \ 135 r_tan.obj \ 136 r_tanh.obj \ 137 rdfmt.obj \ 138 rewind.obj \ 139 rsfe.obj \ 140 rsli.obj \ 141 rsne.obj \ 142 s_cat.obj \ 143 s_cmp.obj \ 144 s_copy.obj \ 145 s_paus.obj \ 146 s_rnge.obj \ 147 s_stop.obj \ 148 sfe.obj \ 149 sig_die.obj \ 150 signal_.obj \ 151 sue.obj \ 152 system_.obj \ 153 typesize.obj \ 154 uio.obj \ 155 uninit.obj \ 156 util.obj \ 157 wref.obj \ 158 wrtfmt.obj \ 159 wsfe.obj \ 160 wsle.obj \ 161 wsne.obj \ 162 xwsne.obj \ 163 z_abs.obj \ 164 z_cos.obj \ 165 z_div.obj \ 166 z_exp.obj \ 167 z_log.obj \ 168 z_sin.obj \ 169 z_sqrt.obj 170 171watf2c.lib: f2c.h signal1.h sysdep1.h $w 172 wlib -c watf2c.lib @libf2c 173 174f2c.h: f2c.h0 175 copy f2c.h0 f2c.h 176 177signal1.h: signal1.h0 178 copy signal1.h0 signal1.h 179 180sysdep1.h: sysdep1.h0 181 copy sysdep1.h0 sysdep1.h 182 183signbit.obj uninit.obj: arith.h 184 185arith.h: arithchk.c 186 comptry.bat wcl386 -DNO_FPINIT arithchk.c 187 arithchk >arith.h 188 del arithchk.exe 189 del arithchk.obj 190