forked from bonsai/harakit
Makefile: stopped linking true and false to yac.so
This commit is contained in:
parent
e0122f21ca
commit
e9effb5d43
18
Makefile
18
Makefile
@ -8,27 +8,26 @@
|
|||||||
.POSIX:
|
.POSIX:
|
||||||
|
|
||||||
PREFIX=/usr/local
|
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
|
build: build_dir cat false tail true
|
||||||
rm build/yac.o
|
|
||||||
|
|
||||||
clean: build_dir
|
clean: build_dir
|
||||||
rm -rf build/
|
rm -rf build/
|
||||||
|
|
||||||
cat: build_dir lib
|
cat: src/cat.c build_dir lib
|
||||||
cc $(CFLAGS) -o build/cat src/cat.c
|
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
|
cc $(CFLAGS) -o build/false src/false.c
|
||||||
|
|
||||||
tail: build_dir lib
|
tail: src/tail.c build_dir lib
|
||||||
cc $(CFLAGS) -o build/tail src/tail.c
|
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
|
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 $(CFLAGS) -c -fPIC -o build/yac.o src/yac.c
|
||||||
cc -shared -o build/libyac.so build/yac.o
|
cc -shared -o build/libyac.so build/yac.o
|
||||||
|
|
||||||
@ -36,6 +35,7 @@ build_dir:
|
|||||||
mkdir -p build
|
mkdir -p build
|
||||||
|
|
||||||
install: build
|
install: build
|
||||||
|
rm build/*.o
|
||||||
mkdir -p $(PREFIX)/lib $(PREFIX)/bin
|
mkdir -p $(PREFIX)/lib $(PREFIX)/bin
|
||||||
cp -f build/*.so $(PREFIX)/lib/
|
cp -f build/*.so $(PREFIX)/lib/
|
||||||
cp -f build/* $(PREFIX)/bin/
|
cp -f build/* $(PREFIX)/bin/
|
||||||
|
Loading…
Reference in New Issue
Block a user