head	1.6;
access;
symbols;
locks; strict;
comment	@# @;


1.6
date	94.03.18.13.24.58;	author vinsci;	state Exp;
branches;
next	1.5;

1.5
date	94.03.18.04.31.59;	author vinsci;	state Exp;
branches;
next	1.4;

1.4
date	94.03.18.03.56.26;	author vinsci;	state Exp;
branches;
next	1.3;

1.3
date	94.03.18.03.38.22;	author vinsci;	state Exp;
branches;
next	1.2;

1.2
date	94.03.18.02.32.11;	author vinsci;	state Exp;
branches;
next	1.1;

1.1
date	94.03.18.02.29.08;	author vinsci;	state Exp;
branches;
next	;


desc
@@


1.6
log
@*** empty log message ***
@
text
@#
# Create 680x0, x>=2 variants of the math functions (these use
# hardware math).
#
CC=gcc
CFLAGS=-m68020 -O2

OBJS = mulsi3_20.o udivsi3_20.o divsi3_20.o umodsi3_20.o modsi3_20.o \
   lshrsi3_20.o lshlsi3_20.o ashrsi3_20.o ashlsi3_20.o \
   divdf3_20.o muldf3_20.o negdf2_20.o adddf3_20.o subdf3_20.o \
   fixdfsi_20.o fixsfsi_20.o floatsidf_20.o floatsisf_20.o truncdfsf2_20.o extendsfdf2_20.o \
   addsf3_20.o negsf2_20.o subsf3_20.o mulsf3_20.o divsf3_20.o \
   eqdf2_20.o nedf2_20.o gtdf2_20.o gedf2_20.o ltdf2_20.o ledf2_20.o \
   eqsf2_20.o nesf2_20.o gtsf2_20.o gesf2_20.o ltsf2_20.o lesf2_20.o \
   cmpdf2_20.o cmpsf2_20.o fixunsdfsi_20.o

libgcc1_20.a: common.h config.h $(OBJS)
	-rm -f libgcc1_20.a
	$(AR) $(ARFLAGS) tmplibgcc1_20.a $(OBJS)
	mv tmplibgcc1_20.a libgcc1_20.a
@


1.5
log
@*** empty log message ***
@
text
@d5 2
a6 2

.c.o: gcc -m68020 -O2 -c $<
d14 2
a15 1
   eqsf2_20.o nesf2_20.o gtsf2_20.o gesf2_20.o ltsf2_20.o lesf2_20.o cmpdf2_20.o cmpsf2_20.o
d18 1
a18 1
	-rm -f tmplibgcc1_20.a
@


1.4
log
@*** empty log message ***
@
text
@a4 2
CC=gcc
CCLIBFLAGS= -m68020 -O2
d6 1
a6 1
.c.o: $(CC) $(CCLIBFLAGS) -c -DL_$< libgcc1.c
@


1.3
log
@*** empty log message ***
@
text
@d8 1
a8 1
.x.o: $(CC) $(CCLIBFLAGS) -c -DL_$< libgcc1.c
d10 7
a16 8
# Members of libgcc1_20.a.
LIB1FUNCS = mulsi3 udivsi3 divsi3 umodsi3 modsi3 \
   lshrsi3 lshlsi3 ashrsi3 ashlsi3 \
   divdf3 muldf3 negdf2 adddf3 subdf3 \
   fixdfsi fixsfsi floatsidf floatsisf truncdfsf2 extendsfdf2 \
   addsf3 negsf2 subsf3 mulsf3 divsf3 \
   eqdf2 nedf2 gtdf2 gedf2 ltdf2 ledf2 \
   eqsf2 nesf2 gtsf2 gesf2 ltsf2 lesf2 cmpdf2 cmpsf2
d18 1
a18 9
OBJS = mulsi3.o udivsi3.o divsi3.o umodsi3.o modsi3.o \
   lshrsi3.o lshlsi3.o ashrsi3.o ashlsi3.o \
   divdf3.o muldf3.o negdf2.o adddf3.o subdf3.o \
   fixdfsi.o fixsfsi.o floatsidf.o floatsisf.o truncdfsf2.o extendsfdf2.o \
   addsf3.o negsf2.o subsf3.o mulsf3.o divsf3.o \
   eqdf2.o nedf2.o gtdf2.o gedf2.o ltdf2.o ledf2.o \
   eqsf2.o nesf2.o gtsf2.o gesf2.o ltsf2.o lesf2.o cmpdf2.o cmpsf2.o

libgcc1_20.a: libgcc1.c config.h $(LIBX)
d20 1
a20 10
	for name in $(LIB1FUNCS); \
	do \
	  echo $${name}_20; \
	  rm -f $${name}_20.o; \
	  $(CC) $(CCLIBFLAGS) -c -DL_$${name} libgcc1.c; \
	  if [ $$? -eq 0 ] ; then true; else exit 1; fi; \
	  mv libgcc1.o $${name}_20.o; \
	  $(AR) $(ARFLAGS) tmplibgcc1_20.a $${name}_20.o; \
	  rm -f $${name}_20.o; \
	done
@


1.2
log
@*** empty log message ***
@
text
@d8 2
d11 15
a25 7
LIB1FUNCS = _mulsi3 _udivsi3 _divsi3 _umodsi3 _modsi3 \
   _lshrsi3 _lshlsi3 _ashrsi3 _ashlsi3 \
   _divdf3 _muldf3 _negdf2 _adddf3 _subdf3 \
   _fixdfsi _fixsfsi _floatsidf _floatsisf _truncdfsf2 _extendsfdf2 \
   _addsf3 _negsf2 _subsf3 _mulsf3 _divsf3 \
   _eqdf2 _nedf2 _gtdf2 _gedf2 _ltdf2 _ledf2 \
   _eqsf2 _nesf2 _gtsf2 _gesf2 _ltsf2 _lesf2 _cmpdf2 _cmpsf2
d27 1
a27 2
# Compile the library of arithmetic subroutines with the native compiler.
libgcc1_20.a: libgcc1.c config.h
a28 8
# Actually build it in tmplibgcc1_20.a, then rename at end,
# so that libgcc1.a itself remains nonexistent if compilation is aborted.
# -e causes any failing command to make this rule fail.
# -e doesn't work in certain shells, so we test $$? as well.
# lynx has a broken ar, it always complains when the initial library is
# empty, thus this command works only if we don't do -e
# There is a trailing backslash (\) deleted from the following line.
#	set -e;
d31 1
a31 1
	  echo $${name}; \
d33 1
a33 1
	  $(CC) $(CCLIBFLAGS) -c -DL$${name} libgcc1.c; \
d36 1
a36 1
	  $(OLDAR) $(OLDAR_FLAGS) tmplibgcc1_20.a $${name}_20.o; \
@


1.1
log
@Initial revision
@
text
@d6 1
a6 1
CCLIBFLAGS= -m68020 -O2 $<
@
