rsld/ctest/Makefile
2021-06-28 16:10:10 -05:00

19 lines
No EOL
286 B
Makefile

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