File: Makefile

package info (click to toggle)
criu 4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,500 kB
  • sloc: ansic: 139,280; python: 7,484; sh: 3,824; java: 2,799; makefile: 2,659; asm: 1,137; perl: 206; xml: 117; exp: 45
file content (18 lines) | stat: -rw-r--r-- 548 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Relative path to original objects
define compel_obj_path
        $(addprefix ../../compel/,$(1))
endef

host-ccflags-y		+= -iquote test/compel/arch/$(ARCH)/include
test_objs		:= $(filter-out main.o,$(compel-objs))

hostprogs-y		+= handle_binary
handle_binary-objs	+= $(call compel_obj_path,$(test_objs))
handle_binary-objs	+= main.o
handle_binary-objs	+= handle_binary.o

ifeq ($(ARCH),x86)
    handle_binary-objs	+= handle_binary_32.o
    HOSTCFLAGS_handle_binary.o		+= -DCONFIG_X86_64
    HOSTCFLAGS_handle_binary_32.o	+= -DCONFIG_X86_32
endif