holey-toys/Makefile

24 lines
428 B
Makefile
Raw Permalink Normal View History

2024-03-04 20:38:46 +00:00
CC = gcc
CFLAGS_EXTRA =
CFLAGS = -Wall -Wextra -Wpedantic -std=c17 -O3
2024-03-04 20:24:03 +00:00
2024-03-11 11:41:02 +00:00
.PHONY: clean build-dir hbas example
2024-03-04 20:24:03 +00:00
2024-03-11 11:41:02 +00:00
hbas: build/hbas
example: build/example.hbf
build:
mkdir -p build
build/hbas: build src/hbas.c
2024-03-08 11:23:47 +00:00
${CC} ${CFLAGS} ${CFLAGS_EXTRA} src/hbas.c -o build/hbas
2024-03-04 20:24:03 +00:00
2024-03-11 11:41:02 +00:00
build/example.hbf: build build/hbas examples/example.S
./hbas < examples/example.S > build/example.hbf
xxd build/example.hbf
2024-03-04 20:24:03 +00:00
clean:
2024-03-11 11:41:02 +00:00
rm -rf build
2024-03-04 20:24:03 +00:00
all:
hbas