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


1.1
date	94.05.18.18.02.21;	author md;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Initial revision
@
text
@#	BSDI $Id: Makefile,v 1.1 1993/12/15 17:57:39 md Exp md $

# pared-down GCC1 library.
.include "../Makefile.symlinks"

# The functions we want.  These are extracted from libgcc1.c individually,
# and the code is left in a separate file.  It would be nice to have all
# of libgcc2.c split into separate files already, but...

NEED=	_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

LIB=	gcc1
SRCS=	${NEED:S/$/.c/g}
CFLAGS+=-I. -I${.CURDIR} -I${CFG} -I${.CURDIR}/../common
CFLAGS+=-Dbsd4_4

${SRCS}: libgcc1.c config.h
	${CC} ${CFLAGS} -E -P -DL${.TARGET:R} ${.ALLSRC:M*.c} > ${.TARGET}

all .depend: tm.h ${SRCS}

CLEANFILES+=${SRCS} config.h tm.h

install:

.include <bsd.lib.mk>

# Override all settings of CC so that we're using the native compiler and
# NOT gcc.
.if   ${MACHINE} == "rt"
CC=	hc
.else
CC=	cc
.endif
@
