ALLIANCE_INCLUDE = /labo/include

TARGET_LIB = ../../../lib
CFLAGS     = -c -g
CPPFLAGS   = -I../include -I$(ALLIANCE_INCLUDE)

OBJECTS = beh_addbeaux.o beh_addbebux.o beh_addbebus.o beh_addbefig.o \
          beh_addbegen.o beh_addbemsg.o beh_addbeout.o beh_addbepor.o \
          beh_addbereg.o beh_addberin.o beh_addbiabl.o beh_addbinod.o \
          beh_delbeaux.o beh_delbebux.o beh_delbebus.o beh_delbefig.o \
          beh_delbegen.o beh_delbemsg.o beh_delbeout.o beh_delbepor.o \
          beh_delbereg.o beh_delberin.o beh_delbiabl.o beh_delbinod.o \
          beh_frebeaux.o beh_frebebux.o beh_frebebus.o beh_frebefig.o \
          beh_frebegen.o beh_frebemsg.o beh_frebeout.o beh_frebepor.o \
          beh_frebereg.o beh_freberin.o beh_frebiabl.o beh_frebinod.o \
          beh_rmvbeaux.o beh_rmvbebux.o beh_rmvbebus.o beh_rmvbefig.o \
          beh_rmvbegen.o beh_rmvbemsg.o beh_rmvbeout.o beh_rmvbepor.o \
          beh_rmvbereg.o beh_rmvberin.o \
          beh_getgenva.o

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

$(TARGET_LIB)/libBeh102.a : $(OBJECTS)
	ar ruv $(TARGET_LIB)/libBeh104.a $(OBJECTS)
	-ranlib $(TARGET_LIB)/libBeh104.a

distrib : $(OBJECTS)
	ar rv ../../lib/libBeh104.a $(OBJECTS)
	ranlib ../../lib/libBeh104.a
	cp ../include/beh104.h ../../include

clean :
	rm -f $(OBJECTS)
