patch-build_Makefile_linux 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. --- maradns-1.4.03.orig/build/Makefile.linux 2006-11-24 12:44:29.000000000 +0100
  2. +++ maradns-1.4.03/build/Makefile.linux 2010-02-06 00:23:58.393084387 +0100
  3. @@ -23,23 +23,23 @@ EXECS=server/maradns
  4. # LDFLAGS=-L/usr/ucblib -lucb -lxnet
  5. # end the Solaris section
  6. # Non-Solaris version of "M"
  7. -V="VERSION=$(VERSION)"
  8. +VER="VERSION=$(VERSION)"
  9. Q="DEFINES=-DSELECT_PROBLEM"
  10. # Debug
  11. -FLAGS = -O2 -Wall -DSELECT_PROBLEM
  12. -M="CC=$(CC) $(FLAGS)"
  13. -D="CC=$(CC) $(FLAGS) -DDEBUG -DTHREADS"
  14. +CFLAGS ?= -O2 -Wall -DSELECT_PROBLEM
  15. +M="CC=$(CC) $(CFLAGS)"
  16. +D="CC=$(CC) $(CFLAGS) -DDEBUG -DTHREADS"
  17. #FLAGS = -g
  18. all:
  19. cd libs ; make $(M) ; cd ../dns ; make $(M) ; \
  20. cd ../rng ; make $(M) ; cd ../parse ; make $(M) ; \
  21. cd ../qual ; make $(M) ; cd ../server ; \
  22. - make $(M) $(V) COMPILED=\"$(COMPILED)\" ; \
  23. + make $(M) $(VER) COMPILED=\"$(COMPILED)\" ; \
  24. cd ../tools ; make $(M) ; \
  25. - cd ../tcp ; make $(M) $(V) ; cat ../00README.FIRST
  26. + cd ../tcp ; make $(M) $(VER)
  27. debug:
  28. cd libs ; make $(D) DEBUG="-DDEBUG -DTHREADS" ; \