# Generated Makefile for Restaurant

OBJS=obj/ECOA_time_utils.o obj/ecoaLog.o obj/main.o obj/message_queue.o obj/Defaulter.o \
		obj/Restaurant_Container_Controller.o obj/Restaurant_Service_Manager.o  \
		obj/Restaurant_Timer_Event_Manager.o obj/Restaurant_Timer_Event_Handler.o  \
		obj/posix_apos_binding.o  \
		obj/Table_svc_Chopsticks_Controller.o \
		obj/Table_modMain_Im_container.o \
		obj/Table_Table_modMain_Instance_Controller.o \
		obj/P1_svc_Chopsticks_Controller.o \
		obj/Philosopher_modMain_Im_container.o \
		obj/P1_Philosopher_modMain_Instance_Controller.o \
		obj/P1_Philosopher_Ticker_Controller.o \
		obj/P2_svc_Chopsticks_Controller.o \
		obj/P2_Philosopher_modMain_Instance_Controller.o \
		obj/P2_Philosopher_Ticker_Controller.o \
		obj/P3_svc_Chopsticks_Controller.o \
		obj/P3_Philosopher_modMain_Instance_Controller.o \
		obj/P3_Philosopher_Ticker_Controller.o \
		obj/P4_svc_Chopsticks_Controller.o \
		obj/P4_Philosopher_modMain_Instance_Controller.o \
		obj/P4_Philosopher_Ticker_Controller.o \
		obj/P5_svc_Chopsticks_Controller.o \
		obj/P5_Philosopher_modMain_Instance_Controller.o \
		obj/P5_Philosopher_Ticker_Controller.o \
		../../../4-ComponentImplementations/Table/Table_modMain_Im/Table_modMain_Im.a \
		../../../4-ComponentImplementations/Philosopher/Philosopher_modMain_Im/Philosopher_modMain_Im.a

TARGET=Restaurant
CC=gcc $(CPPFLAGS)
LD=$(CC) -lrt -lpthread -lm -lstdc++
PLATINCS= \
		-Isrc-gen/Table/service/req/inc/ -Isrc-gen/Table/service/prov/inc/ -Isrc-gen/Table/service/req/inc/ -Isrc-gen/Table/service/prov/inc/  \
		-Isrc-gen/Table/versioned_data/inc/  \
		-Isrc-gen/Table \
		-Isrc-gen/Table/Table_modMain_Instance -Isrc-gen/Table/Table_modMain_Instance  \
		-Isrc-gen/Philosopher/service/req/inc/ -Isrc-gen/Philosopher/service/prov/inc/ -Isrc-gen/P1/service/req/inc/ -Isrc-gen/P1/service/prov/inc/  \
		-Isrc-gen/P1/versioned_data/inc/  \
		-Isrc-gen/Philosopher \
		-Isrc-gen/Philosopher/Philosopher_modMain_Instance -Isrc-gen/P1/Philosopher_modMain_Instance  \
		-Isrc-gen/Philosopher/Philosopher_Ticker -Isrc-gen/P1/Philosopher_Ticker -Isrc-gen/P2/service/req/inc/ -Isrc-gen/P2/service/prov/inc/  \
		-Isrc-gen/P2/versioned_data/inc/  \
		-Isrc-gen/Philosopher/Philosopher_modMain_Instance -Isrc-gen/P2/Philosopher_modMain_Instance  \
		-Isrc-gen/Philosopher/Philosopher_Ticker -Isrc-gen/P2/Philosopher_Ticker -Isrc-gen/P3/service/req/inc/ -Isrc-gen/P3/service/prov/inc/  \
		-Isrc-gen/P3/versioned_data/inc/  \
		-Isrc-gen/Philosopher/Philosopher_modMain_Instance -Isrc-gen/P3/Philosopher_modMain_Instance  \
		-Isrc-gen/Philosopher/Philosopher_Ticker -Isrc-gen/P3/Philosopher_Ticker -Isrc-gen/P4/service/req/inc/ -Isrc-gen/P4/service/prov/inc/  \
		-Isrc-gen/P4/versioned_data/inc/  \
		-Isrc-gen/Philosopher/Philosopher_modMain_Instance -Isrc-gen/P4/Philosopher_modMain_Instance  \
		-Isrc-gen/Philosopher/Philosopher_Ticker -Isrc-gen/P4/Philosopher_Ticker -Isrc-gen/P5/service/req/inc/ -Isrc-gen/P5/service/prov/inc/  \
		-Isrc-gen/P5/versioned_data/inc/  \
		-Isrc-gen/Philosopher/Philosopher_modMain_Instance -Isrc-gen/P5/Philosopher_modMain_Instance  \
		-Isrc-gen/Philosopher/Philosopher_Ticker -Isrc-gen/P5/Philosopher_Ticker 

COMPINCS= \
		-I../../../4-ComponentImplementations/Table/Table_modMain_Im \
		-I../../../4-ComponentImplementations/Philosopher/Philosopher_modMain_Im

CFLAGS=-Iinc-gen -I../inc-gen -I../../include $(PLATINCS) $(COMPINCS) -DLITTLE_ENDIAN -DECOA_64BIT_SUPPORT

default: $(TARGET)

clean:
	rm -f obj/*.o

obj/ECOA_time_utils.o : ../../src/ECOA_time_utils.c ../../include/ECOA_time_utils.h
	$(CC) $(CFLAGS) -c $< -o $@

obj/ecoaLog.o : ../../src/ecoaLog.c ../../include/ecoaLog.h
	$(CC) $(CFLAGS) -c $< -o $@

obj/Defaulter.o : ../../src/Defaulter.c ../../include/Defaulter.h
	$(CC) $(CFLAGS) -c $< -o $@

obj/message_queue.o : ../../src/message_queue.c ../../include/message_queue.h
	$(CC) $(CFLAGS) -c $< -o $@

obj/Restaurant_Container_Controller.o : src-gen/Restaurant_Container_Controller.c inc-gen/Restaurant_Container_Controller.h
	$(CC) $(CFLAGS) -c $< -o $@

obj/Restaurant_Timer_Event_Manager.o : src-gen/Restaurant_Timer_Event_Manager.c inc-gen/Restaurant_Timer_Event_Manager.h
	$(CC) $(CFLAGS) -c $< -o $@

obj/Restaurant_Timer_Event_Handler.o : src-gen/Restaurant_Timer_Event_Handler.c inc-gen/Restaurant_Timer_Event_Handler.h
	$(CC) $(CFLAGS) -c $< -o $@

obj/Restaurant_Service_Manager.o : src-gen/Restaurant_Service_Manager.c inc-gen/Restaurant_Service_Manager.h
	$(CC) $(CFLAGS) -c $< -o $@

obj/posix_apos_binding.o : ../src-gen/posix_apos_binding.c ../inc-gen/posix_apos_binding.h
	$(CC) $(CFLAGS) -c $< -o $@

obj/Table_svc_Chopsticks_Controller.o : src-gen/Table/service/prov/Table_svc_Chopsticks_Controller.c src-gen/Table/service/prov/inc/Table_svc_Chopsticks_Controller.h
	$(CC) $(CFLAGS) -c $< -o $@

obj/Table_modMain_Im_container.o : src-gen/Table/Table_modMain_Im_container.c ../../../4-ComponentImplementations/Table/Table_modMain_Im/Table_modMain_Im_container.h
	$(CC) $(CFLAGS) -c $< -o $@

obj/Table_Table_modMain_Instance_Controller.o : src-gen/Table/Table_modMain_Instance/Table_Table_modMain_Instance_Controller.c src-gen/Table/Table_modMain_Instance/Table_Table_modMain_Instance_Controller.h
	$(CC) $(CFLAGS) -c $< -o $@

obj/P1_svc_Chopsticks_Controller.o : src-gen/P1/service/req/P1_svc_Chopsticks_Controller.c src-gen/P1/service/req/inc/P1_svc_Chopsticks_Controller.h
	$(CC) $(CFLAGS) -c $< -o $@

obj/Philosopher_modMain_Im_container.o : src-gen/Philosopher/Philosopher_modMain_Im_container.c ../../../4-ComponentImplementations/Philosopher/Philosopher_modMain_Im/Philosopher_modMain_Im_container.h
	$(CC) $(CFLAGS) -c $< -o $@

obj/P1_Philosopher_modMain_Instance_Controller.o : src-gen/P1/Philosopher_modMain_Instance/P1_Philosopher_modMain_Instance_Controller.c src-gen/P1/Philosopher_modMain_Instance/P1_Philosopher_modMain_Instance_Controller.h
	$(CC) $(CFLAGS) -c $< -o $@

obj/P1_Philosopher_Ticker_Controller.o : src-gen/P1/Philosopher_Ticker/P1_Philosopher_Ticker_Controller.c src-gen/P1/Philosopher_Ticker/P1_Philosopher_Ticker_Controller.h
	$(CC) $(CFLAGS) -c $< -o $@

obj/P2_svc_Chopsticks_Controller.o : src-gen/P2/service/req/P2_svc_Chopsticks_Controller.c src-gen/P2/service/req/inc/P2_svc_Chopsticks_Controller.h
	$(CC) $(CFLAGS) -c $< -o $@

obj/P2_Philosopher_modMain_Instance_Controller.o : src-gen/P2/Philosopher_modMain_Instance/P2_Philosopher_modMain_Instance_Controller.c src-gen/P2/Philosopher_modMain_Instance/P2_Philosopher_modMain_Instance_Controller.h
	$(CC) $(CFLAGS) -c $< -o $@

obj/P2_Philosopher_Ticker_Controller.o : src-gen/P2/Philosopher_Ticker/P2_Philosopher_Ticker_Controller.c src-gen/P2/Philosopher_Ticker/P2_Philosopher_Ticker_Controller.h
	$(CC) $(CFLAGS) -c $< -o $@

obj/P3_svc_Chopsticks_Controller.o : src-gen/P3/service/req/P3_svc_Chopsticks_Controller.c src-gen/P3/service/req/inc/P3_svc_Chopsticks_Controller.h
	$(CC) $(CFLAGS) -c $< -o $@

obj/P3_Philosopher_modMain_Instance_Controller.o : src-gen/P3/Philosopher_modMain_Instance/P3_Philosopher_modMain_Instance_Controller.c src-gen/P3/Philosopher_modMain_Instance/P3_Philosopher_modMain_Instance_Controller.h
	$(CC) $(CFLAGS) -c $< -o $@

obj/P3_Philosopher_Ticker_Controller.o : src-gen/P3/Philosopher_Ticker/P3_Philosopher_Ticker_Controller.c src-gen/P3/Philosopher_Ticker/P3_Philosopher_Ticker_Controller.h
	$(CC) $(CFLAGS) -c $< -o $@

obj/P4_svc_Chopsticks_Controller.o : src-gen/P4/service/req/P4_svc_Chopsticks_Controller.c src-gen/P4/service/req/inc/P4_svc_Chopsticks_Controller.h
	$(CC) $(CFLAGS) -c $< -o $@

obj/P4_Philosopher_modMain_Instance_Controller.o : src-gen/P4/Philosopher_modMain_Instance/P4_Philosopher_modMain_Instance_Controller.c src-gen/P4/Philosopher_modMain_Instance/P4_Philosopher_modMain_Instance_Controller.h
	$(CC) $(CFLAGS) -c $< -o $@

obj/P4_Philosopher_Ticker_Controller.o : src-gen/P4/Philosopher_Ticker/P4_Philosopher_Ticker_Controller.c src-gen/P4/Philosopher_Ticker/P4_Philosopher_Ticker_Controller.h
	$(CC) $(CFLAGS) -c $< -o $@

obj/P5_svc_Chopsticks_Controller.o : src-gen/P5/service/req/P5_svc_Chopsticks_Controller.c src-gen/P5/service/req/inc/P5_svc_Chopsticks_Controller.h
	$(CC) $(CFLAGS) -c $< -o $@

obj/P5_Philosopher_modMain_Instance_Controller.o : src-gen/P5/Philosopher_modMain_Instance/P5_Philosopher_modMain_Instance_Controller.c src-gen/P5/Philosopher_modMain_Instance/P5_Philosopher_modMain_Instance_Controller.h
	$(CC) $(CFLAGS) -c $< -o $@

obj/P5_Philosopher_Ticker_Controller.o : src-gen/P5/Philosopher_Ticker/P5_Philosopher_Ticker_Controller.c src-gen/P5/Philosopher_Ticker/P5_Philosopher_Ticker_Controller.h
	$(CC) $(CFLAGS) -c $< -o $@

obj/main.o : ../src-gen/main.c 
	$(CC) $(CFLAGS) -c $< -o $@



dirCheck:
	mkdir -p obj

$(TARGET) : dirCheck $(OBJS)
	$(LD) $(OBJS) -o $@ $(LDLIBS) $(LDMAP)
