Subversion Repositories PlanixRsrch.SVN

Rev

Rev 287 | Rev 301 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed


OBJS=\
        mavl_create.o \
        mavl.o mavl_get.o \
        mavl_del_all.o \
        mavlnode_destroy.o \
        mavl_foreach.o \
        mavl_verify.o \
        mavl_get_depth.o \
        mavl_print.o \
        mavliter_init.o \
        mavliter_next.o \
        mavliter_get.o \
        mavliter_seek_set.o \
        mavl_del.o

LIBNAME=libmavl.a

PREFIX=~

.c.o: 
        $(CC) -c $(CFLAGS) $<

$(LIBNAME): $(OBJS)
        $(AR) rcs $(LIBNAME) $(OBJS)

example1: $(LIBNAME) example1.o
        $(CC) -o example1 example1.o $(LIBNAME)

example2: $(LIBNAME) example2.o
        $(CC) -o example2 example2.o $(LIBNAME)


clean:
        rm -f $(OBJS)
        rm -f $(LIBNAME)
        rm -f example1.o example1 
        rm -f example2.o example2
        rm -f *.core

install: $(LIBNAME)
        mkdir -p $(PREFIX)/lib  
        mkdir -p $(PREFIX)/include/libmavl
        install -p $(LIBNAME) $(PREFIX)/lib/$(LIBNAME) 
        install -p mavl.h $(PREFIX)/include/libmavl/mavl.h