# EPOS Handler Makefile
#
# Author: Guto

include $(EPOS)/makedefs

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

$(LIBSYS):	hfun.o hthr.o hsem.o 
		$(AR) $(ARFLAGS) $@ $^

$(LIBDATA):	hfun_data.o hthr_data.o hsem_data.o 
		$(AR) $(ARFLAGS) $@ $^

$(LIBINIT):	hfun_init.o hthr_init.o hsem_init.o 
		$(AR) $(ARFLAGS) $@ $^

test:		handler_test hfun_test hthr_test hsem_test 

print:
		$(PRINT) $(INCLUDE)/handler.h
		$(PRINT) $(INCLUDE)/system/abstractions/handler/hfun.h hfun.cc
		$(PRINT) $(INCLUDE)/system/abstractions/handler/hthr.h hthr.cc
		$(PRINT) $(INCLUDE)/system/abstractions/handler/hsem.h hsem.cc

clean:
		$(CLEAN) *.o *_test

