You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
404 B

CC = gcc
CFLAGS = -Wall -Wextra
all: test
test: testBuilder
./testBuilder
testBuilder: build/builder.o build/testBuilder.o
$(CC) -o $@ $^
build/builder.o: src/builder.c src/builder.h | build
$(CC) $(CFLAGS) -c $< -o $@
build/testBuilder.o: test/testBuilder.c src/builder.h | build
$(CC) $(CFLAGS) -Isrc/ -c $< -o $@
build:
mkdir build
clean:
rm -rf testBuilder build
.PHONY: all test clean