blang/Makefile

23 lines
348 B
Makefile
Raw Normal View History

2022-12-08 21:51:40 -07:00
CC = cc
RM = rm -f
TARGETS = bin/blang
all: $(TARGETS)
clean:
$(RM) $(TARGETS)
2022-12-09 17:26:10 -07:00
build:
mkdir -p build
2022-12-08 21:51:40 -07:00
2022-12-09 17:26:10 -07:00
build/blang.o: build src/blang.c src/blang.h
$(CC) -c -o $@ src/blang.c
build/ops.o: build src/blang.h src/ops.c src/ops.h
$(CC) -c -o $@ src/ops.c
2022-12-09 19:34:03 -07:00
bin/blang: build/blang.o build/ops.o
2022-12-09 17:26:10 -07:00
$(CC) $(CFLAGS) -o $@ build/*.o
2022-12-08 21:51:40 -07:00
.PHONY: all clean