You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

19 lines
290 B

CC=gcc
CFLAGS=-O2
OBJ = number_guesser.o
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
guess: $(OBJ)
$(CC) -o $@ $^ $(CFLAGS)
evil: guess
$(CC) -shared -fPIC evil_random.c -o evil_random.so
LD_PRELOAD="$(PWD)/evil_random.so" ./guess
run: guess
./guess
clean:
rm -f *.o *.so guess