root/arch/sparc/lib/Makefile

/* [previous][next][first][last][top][bottom][index][help] */
#
# Makefile for Sparc library files..
#

CFLAGS := $(CFLAGS) -ansi

.c.s:
        $(CC) $(CFLAGS) -S $<
.s.o:
        $(AS) -c -o $*.o $<
.c.o:
        $(CC) $(CFLAGS) -c $<

OBJS  = mul.o rem.o sdiv.o udiv.o umul.o urem.o ashrdi3.o

lib.a: $(OBJS)
        $(AR) rcs lib.a $(OBJS)
        sync

mul.o: mul.S
        $(CC) -c -o mul.o mul.S

rem.o: rem.S
        $(CC) -DST_DIV0=0x2 -c -o rem.o rem.S

sdiv.o: sdiv.S
        $(CC) -DST_DIV0=0x2 -c -o sdiv.o sdiv.S

udiv.o: udiv.S
        $(CC) -DST_DIV0=0x2 -c -o udiv.o udiv.S

umul.o: umul.S
        $(CC) -c -o umul.o umul.S

urem.o: urem.S
        $(CC) -DST_DIV0=0x2 -c -o urem.o urem.S

ashrdi3.o: ashrdi3.S
        $(CC) -c -o ashrdi3.o ashrdi3.S

dep:

#
# include a dependency file if one exists
#
ifeq (.depend,$(wildcard .depend))
include .depend
endif

/* [previous][next][first][last][top][bottom][index][help] */