X-Git-Url: http://git.onelab.eu/?p=ipfw.git;a=blobdiff_plain;f=dummynet2%2FMakefile;fp=dummynet2%2FMakefile;h=caee67bfc06e332d0eb9a716fb9110dc25c6ff78;hp=3d4a42b827db9dc3b904037e9bdf435380903da5;hb=28a7fe9d930667786b902af6697c01eb87694173;hpb=2a8b6c544cf5ea3c84f763144c7ecfa79daea969 diff --git a/dummynet2/Makefile b/dummynet2/Makefile index 3d4a42b..caee67b 100644 --- a/dummynet2/Makefile +++ b/dummynet2/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile 5858 2010-03-24 16:16:19Z svn_magno $ +# $Id: Makefile 11277 2012-06-10 17:44:15Z marta $ # gnu Makefile to build linux/Windows module for ipfw+dummynet. # # The defaults are set to build without modifications on PlanetLab @@ -260,12 +260,15 @@ endif WARN := -O1 -Wall -Werror -DDEBUG_SPINLOCK -DDEBUG_MUTEXES # The main target + # Required by GCC 4.6 + ccflags-y += -Wno-unused-but-set-variable + # Required by kernel <= 2.6.22, ccflags-y is used on newer version LINUX_VERSION_CODE := $(shell grep LINUX_VERSION_CODE $(KERNELPATH)/include/linux/version.h|cut -d " " -f3) ifeq ($(shell if [ -z $(LINUX_VERSION_CODE) ] ; then echo "true"; fi),true) $(warning "---- Perhaps you miss a (cd $(KERNELPATH); make oldconfig; make prepare; make scripts)"); endif - ifeq ($(shell if [ $(LINUX_VERSION_CODE) -le 132630 ] ; then echo "true"; fi),true) + ifeq ($(shell if [ "$(LINUX_VERSION_CODE)" -le 132630 ] ; then echo "true"; fi),true) EXTRA_CFLAGS += $(ccflags-y) endif @@ -330,7 +333,7 @@ EFILES += netinet/udp_var.h EFILES += netinet6/ip6_var.h -EFILES += sys/_lock.h sys/_rwlock.h sys/_mutex.h sys/jail.h +EFILES += sys/_lock.h sys/_rwlock.h sys/rmlock.h sys/_mutex.h sys/jail.h EFILES += sys/condvar.h sys/eventhandler.h sys/domain.h EFILES += sys/limits.h sys/lock.h sys/mutex.h sys/priv.h EFILES += sys/proc.h sys/rwlock.h sys/socket.h sys/socketvar.h