RM := rm -rf

LIBS := -liwarp

OBJS = libiwarp_sample_app.o
C_DEPS = libiwarp_sample_app.d

%.o: ./src/%.c
	@echo 'Building file: $<'
	@echo 'Invoking: GCC C Compiler'
	gcc -O3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o"$@" "$<"
	@echo 'Finished building: $<'
	@echo ' '

all: libiwarp_sample_app

libiwarp_sample_app: $(OBJS)
	@echo 'Building target: $@'
	@echo 'Invoking: GCC C Linker'
	gcc -o"libiwarp_sample_app" $(OBJS) $(LIBS)
	@echo 'Finished building target: $@'
	@echo ' '

clean:
	-$(RM) $(OBJS) $(C_DEPS) libiwarp_sample_app
	-@echo ' '

.PHONY: all clean
