CC = CC
LD = CC
RAN = ranlib
LIB = $(SLIB)

SLIB    = ../../lib$L.a
DLIB    = ../../lib$L.so
CFLAGS	= -DANSI -g -DSOLARIS -pto -ptv
#CFLAGS = -O
o      = .o

.c.o:
	$(CC) -DLEDA_INSTALL -I../../incl $(CFLAGS) $(DFLAGS) -c $*.c

.s.o:
	as -o $*.o $*.s
 
all: $(LIB)
 
include Make.lst
 
$(SLIB): $(OBJECTS)
	ar cr $(SLIB) $?
	$(RAN) $(SLIB)

$(DLIB): $(SLIB)
	@rm -f -r libtmp; mkdir libtmp
	@cd libtmp; ar x ../$(SLIB); rm -f _sparc_add.o _sparc_sub.o
	$(CCLIB) -o $(DLIB) libtmp/*.o
	@rm -f -r libtmp
 
clean:
	rm -f $(OBJECTS)
 
