# EPOS Communicator Makefile
#
# Author: Guto

include $(EPOS)/makedefs

all:		$(LIBSYS) $(LIBDATA) $(LIBINIT)

$(LIBSYS):	link.o port.o mailbox.o arm_segment.o am_handler.o 
		$(AR) $(ARFLAGS) $@ $^

$(LIBDATA):	link_data.o port_data.o mailbox_data.o arm_segment_data.o am_handler_data.o 
		$(AR) $(ARFLAGS) $@ $^

$(LIBINIT):	link_init.o port_init.o mailbox_init.o arm_segment_init.o am_handler_init.o 
		$(AR) $(ARFLAGS) $@ $^

test:		communicator_test link_test port_test mailbox_test arm_segment_test am_handler_test 

print:
		$(PRINT) $(INCLUDE)/communicator.h
		$(PRINT) $(INCLUDE)/system/abstractions/communicator/link.h link.cc
		$(PRINT) $(INCLUDE)/system/abstractions/communicator/port.h port.cc
		$(PRINT) $(INCLUDE)/system/abstractions/communicator/mailbox.h mailbox.cc
		$(PRINT) $(INCLUDE)/system/abstractions/communicator/arm_segment.h arm_segment.cc
		$(PRINT) $(INCLUDE)/system/abstractions/communicator/am_handler.h am_handler.cc

clean:
		$(CLEAN) *.o *_test

