rsld/ctest/Makefile
2021-06-28 15:33:08 -05:00

19 lines
No EOL
294 B
Makefile

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