CC := gcc
CXX := g++
include  $(EROSBASEREP)/Include/MakefileUser.h

%.o:%.cc
	$(COMPILE.cc) -o $@ $<
LIBF =  $(SLB)libpeida.so $(SLB)liberosc.so
LIBS = -L$(SLB) -lpeida -lerosc  

#------------------------------------------------- End of Makefile.h ------- 
all : piup.so

clean:
	rm -f user.o user.so piup.so

piup.so : user.so
	cp -p user.so piup.so

 
user.so : user.o $(LIBF)
	ld -shared -o user.so -all user.o \
        -none $(LIBS) -lgcxx -lm -lc

user.o: user.cc  $(INC)piup.h \
 $(INC)perrors.h \
 $(INC)exceptions.h \
 $(INC)defs.h \
 $(INC)cimage.h \
 $(INC)rzimage.h \
 $(INC)rzvect.h \
 $(INC)machine.h \
 $(INC)datatypes.h \
 $(INC)utils.h $(INC)peida.h 
