#"%Z% %M% %I% %E% %U%"

include ../../os_depend.mk
include ../../unix_command.mk
include ../../directory.mk
include ../../flags.mk

#---------------------------------------------------------------
#
#			archiver target file
#
#---------------------------------------------------------------
TARGETFILE 	   	= ./libaka.a

#---------------------------------------------------------------
#
#		Objects
#
#---------------------------------------------------------------

#---------------------------------------------------------------
#			object files for Mail Component
#---------------------------------------------------------------
HEADERS			=\
				$(LIBINC)/akacommon.h \
				$(LIBINC)/aka.h \
				$(LIBINC)/akaconst.h \
				$(LIBINC)/akastruct.h \
				$(LIBINC)/akbcommon.h \
				$(LIBINC)/akunix.h \
				$(LIBINC)/akb.h \
				$(LIBINC)/akbconst.h \
				$(LIBINC)/akberror.h \
				$(LIBINC)/akbstruct.h \
				$(LIBINC)/akbmacro.h \
				$(LIBINC)/akbprot.h \
				$(LIBINC)/akx.h \
				$(LIBINC)/akxlib.h \
				$(LIBINC)/akxmemtool.h

SRCS			=	\
					$(TARGETFILE)(akainitregist.o) \
					$(TARGETFILE)(akacommon.o) \
					$(TARGETFILE)(akamsgloop.o) \
					$(TARGETFILE)(akasendmsg.o)


#---------------------------------------------------------------
#
#		rules
#
#---------------------------------------------------------------
all : $(HEADERS) lib

#---------------------------------------------------------------
#		rules for TARGETFILE
#---------------------------------------------------------------
lib : $(SRCS) endlib

endlib :
	$(RANLIB) $(TARGETFILE)

#---------------------------------------------------------------
#
#			basic sufixes
#
#---------------------------------------------------------------
.c.o : $(HEADERS) makefile
		$(CC) $(CFLAGS) -c $*.c

#.o.a :
#	$(AR) $(ARFLAGS) $@ $*.o

#---------------------------------------------------------------
#
#		other rules
#
#---------------------------------------------------------------
include ../../other_rules.mk

install :
	$(ECHO) $(TARGETFILE) no install

delobj : 
	$(AR) d $(TARGETFILE) akasysclass.o
