rsld/ctest/Makefile

19 lines
286 B
Makefile
Raw Normal View History

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