# EPOS Channel Makefile
#
# Author: Guto

include $(EPOS)/makedefs

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

$(LIBSYS):	stream.o datagram.o am.o 
		$(AR) $(ARFLAGS) $@ $^

$(LIBDATA):	stream_data.o datagram_data.o am_data.o 
		$(AR) $(ARFLAGS) $@ $^

$(LIBINIT):	stream_init.o datagram_init.o am_init.o 
		$(AR) $(ARFLAGS) $@ $^

test:		channel_test stream_test datagram_test am_test 

print:
		$(PRINT) $(INCLUDE)/channel.h
		$(PRINT) $(INCLUDE)/system/abstractions/channel/stream.h stream.cc
		$(PRINT) $(INCLUDE)/system/abstractions/channel/datagram.h datagram.cc
		$(PRINT) $(INCLUDE)/system/abstractions/channel/am.h am.cc

clean:
		$(CLEAN) *.o *_test

