]> granicus.if.org Git - strace/commitdiff
Tweak maintainer rules.
authorRoland McGrath <roland@redhat.com>
Mon, 12 Jul 2004 06:11:03 +0000 (06:11 +0000)
committerRoland McGrath <roland@redhat.com>
Mon, 12 Jul 2004 06:11:03 +0000 (06:11 +0000)
Makefile.am

index 6612d2cd187ec219e6fef45dd6b3399f41d88686..2a1c11583093273e151b3d011c691004a99b4770 100644 (file)
@@ -69,6 +69,7 @@ if MAINTAINER_MODE
 if LINUX
 
 IOCTLDIR = /usr/include
+IOCTLASM = asm
 
 if I386
 ioctlent_h = linux/ioctlent.h
@@ -81,9 +82,10 @@ BUILT_SOURCES = $(ioctlent_h)
 $(srcdir)/$(ioctlent_h): ioctlsort
        $(<D)/$(<F) > $@
 ioctlsort: $(srcdir)/linux/ioctlsort.c ioctls.h ioctldefs.h
-       $(LINK.c) -I. -o $@ $<
+       $(filter-out -I%,$(LINK.c)) -I. -I$(IOCTLDIR) $(filter -I%,$(LINK.c)) \
+         -o $@ $<
 ioctls.h: $(srcdir)/linux/ioctlent.sh
-       $(SHELL) $< $(IOCTLDIR)
+       $(SHELL) $< $(IOCTLDIR) $(IOCTLASM)
 ioctldefs.h: ioctls.h ;
 
 endif