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.

54 lines
1.4 KiB

  1. --- a/Makefile
  2. +++ b/Makefile
  3. @@ -35,7 +35,7 @@ ARCH = $(shell uname -m)
  4. RPMSOURCEDIR = $(shell rpm --eval '%_sourcedir')
  5. RPMSPECDIR = $(shell rpm --eval '%_specdir')
  6. -CC = gcc
  7. +BUILD_ROOT = $(DESTDIR)
  8. INCLUDE =
  9. SBIN = $(BUILD_ROOT)/sbin
  10. MANDIR = usr/man
  11. @@ -46,9 +46,9 @@ INSTALL = install
  12. STATIC_LIBS = libipvs/libipvs.a
  13. ifeq "${ARCH}" "sparc64"
  14. - CFLAGS = -Wall -Wunused -Wstrict-prototypes -g -m64 -pipe -mcpu=ultrasparc -mcmodel=medlow
  15. + CFLAGS += -Wall -Wunused -Wstrict-prototypes -g -m64 -pipe -mcpu=ultrasparc -mcmodel=medlow
  16. else
  17. - CFLAGS = -Wall -Wunused -Wstrict-prototypes -g
  18. + CFLAGS += -Wall -Wunused -Wstrict-prototypes -g
  19. endif
  20. @@ -83,8 +83,9 @@ DEFINES += $(shell if [ ! -f ../ip_vs.h
  21. all: libs ipvsadm
  22. +$(STATIC_LIBS): libs
  23. libs:
  24. - make -C libipvs
  25. + $(MAKE) -C libipvs
  26. ipvsadm: $(OBJS) $(STATIC_LIBS)
  27. $(CC) $(CFLAGS) -o $@ $^ $(LIBS)
  28. @@ -106,7 +107,7 @@ clean:
  29. rm -rf debian/tmp
  30. find . -name '*.[ao]' -o -name "*~" -o -name "*.orig" \
  31. -o -name "*.rej" -o -name core | xargs rm -f
  32. - make -C libipvs clean
  33. + $(MAKE) -C libipvs clean
  34. distclean: clean
  35. --- a/libipvs/Makefile
  36. +++ b/libipvs/Makefile
  37. @@ -1,7 +1,7 @@
  38. # Makefile for libipvs
  39. CC = gcc
  40. -CFLAGS = -Wall -Wunused -Wstrict-prototypes -g -fPIC
  41. +CFLAGS += -Wall -Wunused -Wstrict-prototypes -g -fPIC
  42. ifneq (0,$(HAVE_NL))
  43. CFLAGS += -DLIBIPVS_USE_NL
  44. CFLAGS += $(shell \