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