blang/Makefile
2022-12-21 00:12:26 -05:00

24 lines
377 B
Makefile

CC = cc
CFLAGS = -g
RM = rm -f
TARGETS = bin/blang
all: $(TARGETS)
clean:
$(RM) $(TARGETS)
build:
mkdir -p build
build/libblang.o: build src/libblang.c src/libblang.h
$(CC) $(CFLAGS) -c -o $@ src/libblang.c
build/main.o: build src/main.c
$(CC) $(CFLAGS) -c -o $@ src/main.c
bin/blang: build/libblang.o build/main.o
$(CC) $(CFLAGS) -o $@ build/*.o
.PHONY: all clean