1
0
forked from bonsai/harakit

Makefile: stopped linking true and false to yac.so

This commit is contained in:
Emma Tebibyte 2023-08-30 18:50:37 -06:00
parent e0122f21ca
commit e9effb5d43
Signed by untrusted user: emma
GPG Key ID: 6D661C738815E7DD

View File

@ -8,27 +8,26 @@
.POSIX:
PREFIX=/usr/local
CFLAGS=-O3 -s -Wl,-z,noseparate-code,-z,nosectionheader -flto -Lbuild -lyac
CFLAGS=-O3 -s -Wl,-z,noseparate-code,-z,nosectionheader -flto -Lbuild
build: build_dir cat false tail true
rm build/yac.o
clean: build_dir
rm -rf build/
cat: build_dir lib
cc $(CFLAGS) -o build/cat src/cat.c
cat: src/cat.c build_dir lib
cc $(CFLAGS) -lyac -o build/cat src/cat.c
false: build_dir lib
false: src/false.c build_dir
cc $(CFLAGS) -o build/false src/false.c
tail: build_dir lib
cc $(CFLAGS) -o build/tail src/tail.c
tail: src/tail.c build_dir lib
cc $(CFLAGS) -lyac -o build/tail src/tail.c
true: build_dir lib
true: src/true.c build_dir
cc $(CFLAGS) -o build/true src/true.c
lib:
lib: src/yac.c src/yac.h
cc $(CFLAGS) -c -fPIC -o build/yac.o src/yac.c
cc -shared -o build/libyac.so build/yac.o
@ -36,6 +35,7 @@ build_dir:
mkdir -p build
install: build
rm build/*.o
mkdir -p $(PREFIX)/lib $(PREFIX)/bin
cp -f build/*.so $(PREFIX)/lib/
cp -f build/* $(PREFIX)/bin/