CC = gcc CPPFLAGS = -D__RT_KERNEL_SOURCE__ -Iport -Iinclude -Icomponents/drivers/include CFLAGS = -std=c11 -O1 -Wall -Wextra SOURCES = components/drivers/ipc/workqueue.c src/timer.c port/port.c .PHONY: smoke clean smoke: smoke-bin ./smoke-bin smoke-bin: $(SOURCES) smoke.c $(CC) $(CPPFLAGS) $(CFLAGS) $(SOURCES) smoke.c -o $@ clean: rm -f smoke-bin