2021-05-05 13:22:14 +01:00
|
|
|
sourcefiles := $(shell find src/impl/ -name *.c)
|
2021-04-18 22:13:13 +01:00
|
|
|
|
|
|
|
|
|
|
|
all:
|
|
|
|
make build-main
|
|
|
|
|
|
|
|
build-main:
|
|
|
|
mkdir -p dist/ && \
|
2021-05-05 13:22:14 +01:00
|
|
|
gcc -o dist/bf2c -I src/intf/ ${sourcefiles}
|
2021-04-18 22:13:13 +01:00
|
|
|
|
|
|
|
package:
|
|
|
|
./scripts/package-bf2c.sh
|
|
|
|
|
|
|
|
deb:
|
|
|
|
make clean && \
|
|
|
|
make all && \
|
|
|
|
make package
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf dist/ && \
|
|
|
|
rm -rf package/
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: run
|
|
|
|
run:
|
|
|
|
cd ./dist/ && \
|
|
|
|
./bf2c
|