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 (32 lines) | stat: -rw-r--r-- 881 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
SRC_DIR := ../../plugins
PLUGIN_TARGETS := inventory_test_enabled_plugin.so inventory_test_disabled_plugin.so amdgpu_plugin.so cuda_plugin.so

ARCH	:= x86

PLUGIN_INCLUDE	:= -iquote../../include
PLUGIN_INCLUDE	+= -iquote../../criu/include
PLUGIN_INCLUDE	+= -iquote../../criu/arch/$(ARCH)/include/
PLUGIN_INCLUDE	+= -iquote../../
PLUGIN_CFLAGS	:= -g -Wall -Werror -shared -nostartfiles -fPIC

# Silent make rules.
Q := @

all: $(PLUGIN_TARGETS)

amdgpu_plugin.so: $(SRC_DIR)/amdgpu/amdgpu_plugin.so
	$(Q) cp $< $@

cuda_plugin.so: $(SRC_DIR)/cuda/cuda_plugin.so
	$(Q) cp $< $@

inventory_test_enabled_plugin.so: inventory_test_enabled_plugin.c
	$(Q) $(CC) $(PLUGIN_CFLAGS) $< -o $@ $(PLUGIN_INCLUDE)

inventory_test_disabled_plugin.so: inventory_test_disabled_plugin.c
	$(Q) $(CC) $(PLUGIN_CFLAGS) $< -o $@ $(PLUGIN_INCLUDE)

clean:
	$(Q) $(RM) $(PLUGIN_TARGETS)

.PHONY: all clean