Adapted from https://sources.debian.org/src/maradns/2.0.13-1.4/debian/patches/deadwood_makefile.patch/ diff --git a/deadwood-3.5.0020/src/Makefile.ubuntu2004 b/deadwood-3.5.0020/src/Makefile.ubuntu2004 index 62868aa..2c8c094 100644 --- a/deadwood-3.5.0020/src/Makefile.ubuntu2004 +++ b/deadwood-3.5.0020/src/Makefile.ubuntu2004 @@ -29,13 +29,10 @@ all: Deadwood version.h # clean: - rm -f Test DwMain DwTcp *.exe *.o a.out RandomPrime writehash_test* \ - Deadwood foo* dw_cache DwHash DwCompress *stackdump \ - core ; \ - ./make.version.h ; if [ -e /dev/urandom ] ; \ - then rm DwRandPrime.h ; \ - cc RandomPrime.c ; ./a.out > DwRandPrime.h ; rm a.out \ - ; fi + rm -f Test DwMain DwTcp *.exe *.o a.out writehash_test* \ + Deadwood foo* dw_cache DwHash DwCompress *stackdump core + + version.h: ./make.version.h @@ -67,11 +64,8 @@ DwSocket.o: DwSocket.c DwStr.h DwSocket.h DwSys.o: DwSys.c DwStr.h version.h $(CC) $(FLAGS) -Wall -c -o DwSys.o DwSys.c -RandomPrime: RandomPrime.c - $(CC) -O3 -o RandomPrime RandomPrime.c - -DwRandPrime.h: RandomPrime - if [ -e /dev/urandom ] ; then ./RandomPrime > DwRandPrime.h ; fi +DwRandPrime.h: + echo '#define MUL_CONSTANT 1238145941' > DwRandPrime.h DwHash.o: DwHash.c DwStr.h DwRandPrime.h DwHash.h $(CC) $(FLAGS) -Wall -c -o DwHash.o DwHash.c