Commit 2a1db9c2 authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Andrei Vagin

compel/test/infect/Makefile: don't add .h to sources

The way the Makefile is written, parasite.h is added
to gcc command line, like this:

  gcc -o spy spy.c libcompel.a parasite.h

Surely this is not what we want, as parasite.h is included to spy.c

The fix is to use "order-only prerequisite", as described by
https://www.gnu.org/software/make/manual/html_node/Prerequisite-Types.htmlSigned-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 06953ea4
......@@ -22,7 +22,7 @@ clean:
victim: victim.c
gcc -o $@ $^
spy: spy.c parasite.h $(COMPEL_LIBRARY)
spy: spy.c $(COMPEL_LIBRARY) | parasite.h
gcc -Werror -I$(COMPEL_IDIR) -I$(COMMON_IDIR) -o $@ $^
parasite.h: parasite.po
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment