lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Tue, 10 Nov 2015 22:32:04 +0900 From: Sergey Senozhatsky <sergey.senozhatsky@...il.com> To: Andrew Morton <akpm@...ux-foundation.org> Cc: Christoph Lameter <cl@...ux.com>, Pekka Enberg <penberg@...nel.org>, David Rientjes <rientjes@...gle.com>, Joonsoo Kim <iamjoonsoo.kim@....com>, linux-mm@...ck.org, linux-kernel@...r.kernel.org, Sergey Senozhatsky <sergey.senozhatsky.work@...il.com>, Sergey Senozhatsky <sergey.senozhatsky@...il.com> Subject: [PATCH 1/3] tools/vm: fix Makefile multi-targets Build all of the $(TARGETS), not just the first one. Without the patch (make -n) ============================== make -C ../lib/api gcc -Wall -Wextra -I../lib/ -o page-types page-types.c ... Only 'page-types' target was built. With the patch (make -n) =========================== make -C ../lib/api gcc -Wall -Wextra -O2 -I../lib/ -o page-types page-types.c ... gcc -Wall -Wextra -O2 -I../lib/ -o slabinfo slabinfo.c ... gcc -Wall -Wextra -O2 -I../lib/ -o page_owner_sort page_owner_sort.c ... All 3 targets ('page-types', 'slabinfo', 'page_owner_sort') were built. Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@...il.com> --- tools/vm/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/vm/Makefile b/tools/vm/Makefile index 93aadaf..51c3f8b 100644 --- a/tools/vm/Makefile +++ b/tools/vm/Makefile @@ -1,15 +1,15 @@ # Makefile for vm tools # -TARGETS=page-types slabinfo page_owner_sort +TARGETS = page-types slabinfo page_owner_sort LIB_DIR = ../lib/api LIBS = $(LIB_DIR)/libapi.a CC = $(CROSS_COMPILE)gcc -CFLAGS = -Wall -Wextra -I../lib/ +CFLAGS = -Wall -Wextra -O2 -I../lib/ LDFLAGS = $(LIBS) -$(TARGETS): $(LIBS) +all: $(LIBS) $(TARGETS) $(LIBS): make -C $(LIB_DIR) @@ -18,5 +18,5 @@ $(LIBS): $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) clean: - $(RM) page-types slabinfo page_owner_sort + $(RM) $(TARGETS) make -C $(LIB_DIR) clean -- 2.6.2.280.g74301d6 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists