bf2c/Makefile

28 lines
330 B
Makefile
Raw Normal View History

2021-05-05 13:22:14 +01:00
sourcefiles := $(shell find src/impl/ -name *.c)
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}
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