Unhook old g2c from build and start building the GCC 3.4.4 version.
[dragonfly.git] / gnu / lib / gcc34 / libg2c / Makefile
1 # $DragonFly: src/gnu/lib/gcc34/libg2c/Attic/Makefile,v 1.1 2005/06/19 16:18:22 joerg Exp $
2
3 .include "../Makefile.inc"
4
5 LIB=    g2c
6 SHLIB_MAJOR=    3
7
8 SRCDIR= ${GCCDIR}/libf2c
9
10 .PATH: ${SRCDIR} ${SRCDIR}/libF77 ${SRCDIR}/libI77 ${SRCDIR}/libU77
11
12 CFLAGS+=        -I${SRCDIR}
13 CFLAGS+=        -I${SRCDIR}/libF77
14 CFLAGS+=        -I${SRCDIR}/libI77
15
16 # libE77
17 F2CEXT= abort derf derfc ef1asc ef1cmc erf erfc exit getarg getenv iargc \
18         signal system flush ftell fseek access besj0 besj1 besjn besy0 besy1 \
19         besyn chdir chmod ctime dbesj0 dbesj1 dbesjn dbesy0 dbesy1 dbesyn \
20         dtime etime fdate fgetc fget flush1 fnum fputc fput fstat gerror \
21         getcwd getgid getlog getpid getuid gmtime hostnm idate ierrno irand \
22         isatty itime kill link lnblnk lstat ltime mclock perror rand rename \
23         secnds second sleep srand stat symlnk time ttynam umask unlink \
24         vxttim alarm \
25         date_y2kbuggy date_y2kbug vxtidt_y2kbuggy vxtidt_y2kbug
26
27 .for symbol in ${F2CEXT}
28 L${symbol}.c:
29         rm -f ${.TARGET}
30         echo '#define L${symbol}' > ${.TARGET}
31         echo '#include "f2cext.c"' >> ${.TARGET}
32 SRCS+=  L${symbol}.c
33 CLEANFILES+=    L${symbol}.c
34 .endfor
35
36 # libF77
37 SRCS+=  F77_aloc.c VersionF.c s_rnge.c abort_.c getarg_.c iargc_.c
38 SRCS+=  getenv_.c signal_.c s_stop.c s_paus.c system_.c cabs.c
39 SRCS+=  derf_.c derfc_.c erf_.c erfc_.c sig_die.c exit_.c setarg.c setsig.c
40 SRCS+=  pow_ci.c pow_dd.c pow_di.c pow_hh.c pow_ii.c pow_ri.c pow_zi.c
41 SRCS+=  pow_zz.c pow_qq.c
42 SRCS+=  c_abs.c c_cos.c c_div.c c_exp.c c_log.c c_sin.c c_sqrt.c
43 SRCS+=  z_abs.c z_cos.c z_div.c z_exp.c z_log.c z_sin.c z_sqrt.c
44 SRCS+=  r_abs.c r_acos.c r_asin.c r_atan.c r_atn2.c r_cnjg.c r_cos.c
45 SRCS+=  r_cosh.c r_dim.c r_exp.c r_imag.c r_int.c
46 SRCS+=  r_lg10.c r_log.c r_mod.c r_nint.c r_sign.c
47 SRCS+=  r_sin.c r_sinh.c r_sqrt.c r_tan.c r_tanh.c
48 SRCS+=  d_abs.c d_acos.c d_asin.c d_atan.c d_atn2.c
49 SRCS+=  d_cnjg.c d_cos.c d_cosh.c d_dim.c d_exp.c
50 SRCS+=  d_imag.c d_int.c d_lg10.c d_log.c d_mod.c
51 SRCS+=  d_nint.c d_prod.c d_sign.c d_sin.c d_sinh.c
52 SRCS+=  d_sqrt.c d_tan.c d_tanh.c
53 SRCS+=  i_abs.c i_dim.c i_dnnt.c i_indx.c i_len.c i_mod.c i_nint.c i_sign.c
54 SRCS+=  h_abs.c h_dim.c h_dnnt.c h_indx.c h_len.c h_mod.c h_nint.c h_sign.c
55 SRCS+=  l_ge.c l_gt.c l_le.c l_lt.c hl_ge.c hl_gt.c hl_le.c hl_lt.c
56 SRCS+=  ef1asc_.c ef1cmc_.c
57 SRCS+=  s_cat.c s_cmp.c s_copy.c
58 SRCS+=  lbitbits.c lbitshft.c qbitbits.c qbitshft.c
59 SRCS+=  mainF.c
60 # libI77
61 SRCS+=  VersionI.c backspace.c close.c dfe.c dolio.c due.c endfile.c err.c
62 SRCS+=  fmt.c fmtlib.c iio.c ilnw.c inquire.c lread.c lwrite.c open.c
63 SRCS+=  rdfmt.c rewind.c rsfe.c rsli.c rsne.c sfe.c sue.c typesize.c uio.c
64 SRCS+=  util.c wref.c wrtfmt.c wsfe.c wsle.c wsne.c xwsne.c ftell_.c
65 # libU77
66 SRCS+=  VersionU.c gerror_.c perror_.c ierrno_.c itime_.c time_.c
67 SRCS+=  unlink_.c fnum_.c getpid_.c getuid_.c getgid_.c kill_.c rand_.c
68 SRCS+=  srand_.c irand_.c sleep_.c idate_.c ctime_.c etime_.c
69 SRCS+=  dtime_.c isatty_.c ltime_.c fstat_.c stat_.c
70 SRCS+=  lstat_.c access_.c link_.c getlog_.c ttynam_.c getcwd_.c symlnk_.c
71 SRCS+=  vxttime_.c vxtidate_.c gmtime_.c fdate_.c secnds_.c
72 SRCS+=  chdir_.c chmod_.c lnblnk_.c hostnm_.c rename_.c fgetc_.c fputc_.c
73 SRCS+=  umask_.c sys_clock_.c date_.c second_.c flush1_.c mclock_.c
74 SRCS+=  alarm_.c datetime_.c
75
76 mainF.c: ${SRCDIR}/libF77/main.c
77         cp ${SRCDIR}/libF77/main.c ${.TARGET}
78 VersionF.c: ${SRCDIR}/libF77/Version.c
79         cp ${SRCDIR}/libF77/Version.c ${.TARGET}
80 VersionI.c: ${SRCDIR}/libI77/Version.c
81         cp ${SRCDIR}/libI77/Version.c ${.TARGET}
82 VersionU.c: ${SRCDIR}/libU77/Version.c
83         cp ${SRCDIR}/libU77/Version.c ${.TARGET}
84
85 CLEANFILES+=    VersionF.c VersionI.c VersionU.c
86
87 .include <bsd.lib.mk>