CC := clang SOURCES := $(shell find -type f -name "*.c") OBJECTS := $(patsubst %.c, bin/%.bin, $(SOURCES)) CFLAGS := -v -static -fuse-ld=$(shell pwd)/../target/debug/rsld all: $(OBJECTS) bin/%.bin: %.c bin $(CC) $(CFLAGS) -o $@ $< bin: mkdir -p bin clean: rm -rf bin .PHONY: all clean