
CC = g++ -fguiding-decls
LD = g++
IPATH =
LPATH =
IABACUS =
LABACUS =
ICPLEX =
LCPLEX =
ISOPLEX =
LSOPLEX =
RAN = @touch
LIB = $(SLIB)

SLIB    = ../../lib$L.a
DLIB    = ../../lib$L.so

o      = .o

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

.s.o:
	$(CC) -c $*.s
 
all: $(LIB)
 
include Make.lst
 
$(SLIB): $(OBJECTS)
	ar cr $(SLIB) $?
	$(RAN) $(SLIB) > /dev/null
 
$(DLIB): $(SLIB)
	@rm -f -r libtmp; mkdir libtmp
	@cd libtmp; ar x ../$(SLIB)
	$(CCLIB) -o $(DLIB) libtmp/*$o
	@rm -f -r libtmp

clean:
	rm -f $(OBJECTS)
 
