diff options
Diffstat (limited to 'sys-block/megactl/files/megactl-0.4.1-Makefile.patch')
-rw-r--r-- | sys-block/megactl/files/megactl-0.4.1-Makefile.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/sys-block/megactl/files/megactl-0.4.1-Makefile.patch b/sys-block/megactl/files/megactl-0.4.1-Makefile.patch new file mode 100644 index 000000000000..f1ee2f9bb2a4 --- /dev/null +++ b/sys-block/megactl/files/megactl-0.4.1-Makefile.patch @@ -0,0 +1,26 @@ +diff -urN megactl-0.4.1.orig/src/Makefile megactl-0.4.1/src/Makefile +--- megactl-0.4.1.orig/src/Makefile 2007-08-21 09:19:53.000000000 +0200 ++++ megactl-0.4.1/src/Makefile 2009-11-21 12:30:44.242501898 +0100 +@@ -1,11 +1,17 @@ + +-SRCS= megactl.c adapter.c megaioctl.c megatrace.c callinfo.c dumpbytes.c logpage.c ntrim.c ++SRCS= megactl.c adapter.c megaioctl.c callinfo.c dumpbytes.c logpage.c ntrim.c + INC= -I./schily -Iincludes-hack + HDRS= mega.h adapter.h megaioctl.h callinfo.h logpage.h dumpbytes.h +-ARCH= -m32 +-CFLAGS= -g -Wall $(INC) $(ARCH) +-LDFLAGS= -g $(ARCH) +-PROGRAMS= megactl megasasctl megatrace ++ARCH?= -m32 ++CFLAGS?= -g -Wall ++CFLAGS+= $(INC) $(ARCH) ++LDFLAGS?= -g ++LDFLAGS+= $(ARCH) ++PROGRAMS= megactl megasasctl ++ifeq ($(ARCH),-m32) ++PROGRAMS+= megatrace ++SRCS+= megatrace.c ++endif + + all: $(PROGRAMS) + |