patch-build_Makefile_linux 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. - pass CFLAGS to compiler
  2. - pass $(M) when compiling deadwood, no idea why that is missing originally
  3. - do not pass $(M) when compiling in tcp/, as that would cause problems with
  4. the implicit rules in there instead, pass CFLAGS explicitly otherwise
  5. they're lost for some reason
  6. - do not use V as variable name, conflicts with one from OpenADK
  7. --- maradns-2.0.09.orig/build/Makefile.linux 2010-08-31 05:56:38.000000000 +0200
  8. +++ maradns-2.0.09/build/Makefile.linux 2014-06-19 03:16:54.570689574 +0200
  9. @@ -23,33 +23,33 @@ EXECS=server/maradns
  10. # LDFLAGS=-L/usr/ucblib -lucb -lxnet
  11. # end the Solaris section
  12. # Non-Solaris version of "M"
  13. -V="VERSION=$(VERSION)"
  14. +VER="VERSION=$(VERSION)"
  15. Q="DEFINES=-DSELECT_PROBLEM"
  16. # Debug
  17. FLAGS = -O2 -Wall -DSELECT_PROBLEM
  18. -M="CC=$(CC) $(FLAGS)"
  19. -D="CC=$(CC) $(FLAGS) -DDEBUG -DTHREADS"
  20. +M="CC=$(CC) $(CFLAGS) $(FLAGS)"
  21. +D="CC=$(CC) $(CFLAGS) $(FLAGS) -DDEBUG -DTHREADS"
  22. #FLAGS = -g
  23. all:
  24. cd libs ; make $(M) ; cd ../dns ; make $(M) ; \
  25. cd ../rng ; make $(M) ; cd ../parse ; make $(M) ; \
  26. cd ../qual ; make $(M) ; cd ../server ; \
  27. - make $(M) $(V) COMPILED=\"$(COMPILED)\" ; \
  28. + make $(M) $(VER) COMPILED=\"$(COMPILED)\" ; \
  29. cd ../tools ; make $(M) ; \
  30. - cd ../deadwood-*/src/ ; make FLAGS=-O2 ; \
  31. - cd ../../tcp ; make $(M) $(V) ; cat ../00README.FIRST
  32. + cd ../deadwood-*/src/ ; make FLAGS=-O2 $(M) ; \
  33. + cd ../../tcp ; make CFLAGS="$(CFLAGS)" $(VER) ; cat ../00README.FIRST
  34. debug:
  35. cd libs ; make $(D) DEBUG="-DDEBUG -DTHREADS" ; \
  36. cd ../dns ; make $(D) ; cd ../rng ; make $(D) ; \
  37. cd ../parse ; make $(D) ; cd ../qual ; make $(D) ; \
  38. cd ../server ; \
  39. - make $(D) $(Q) $(V) COMPILED=\"$(COMPILED_DEBUG)\" ; \
  40. + make $(D) $(Q) $(VER) COMPILED=\"$(COMPILED_DEBUG)\" ; \
  41. cd ../tools ; make $(D) ; \
  42. - cd ../tcp ; make $(D) $(V) ; cat ../00README.FIRST
  43. + cd ../tcp ; make $(D) $(VER) ; cat ../00README.FIRST
  44. clean:
  45. rm -f $(OBJECTS) core $(EXECS) ; \