# EPOS Synchronizer Makefile
#
# Author: Guto

include $(EPOS)/makedefs

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

$(LIBSYS):	mutex.o semaphore.o condition.o 
		$(AR) $(ARFLAGS) $@ $^

$(LIBDATA):	mutex_data.o semaphore_data.o condition_data.o 
		$(AR) $(ARFLAGS) $@ $^

$(LIBINIT):	mutex_init.o semaphore_init.o condition_init.o 
		$(AR) $(ARFLAGS) $@ $^

test:		synchronizer_test mutex_test semaphore_test condition_test 

print:
		$(PRINT) $(INCLUDE)/synchronizer.h
		$(PRINT) $(INCLUDE)/system/abstractions/synchronizer/mutex.h mutex.cc
		$(PRINT) $(INCLUDE)/system/abstractions/synchronizer/semaphore.h semaphore.cc
		$(PRINT) $(INCLUDE)/system/abstractions/synchronizer/condition.h condition.cc

clean:
		$(CLEAN) *.o *_test

