xref: /openbmc/linux/tools/perf/jvmti/Build (revision 32daa5d7)
1jvmti-y += libjvmti.o
2jvmti-y += jvmti_agent.o
3
4# For strlcpy
5jvmti-y += libstring.o libctype.o
6
7CFLAGS_jvmti         = -fPIC -DPIC -I$(JDIR)/include -I$(JDIR)/include/linux
8CFLAGS_REMOVE_jvmti  = -Wmissing-declarations
9CFLAGS_REMOVE_jvmti += -Wstrict-prototypes
10CFLAGS_REMOVE_jvmti += -Wextra
11CFLAGS_REMOVE_jvmti += -Wwrite-strings
12
13CFLAGS_libstring.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
14
15$(OUTPUT)jvmti/libstring.o: ../lib/string.c FORCE
16	$(call rule_mkdir)
17	$(call if_changed_dep,cc_o_c)
18
19$(OUTPUT)jvmti/libctype.o: ../lib/ctype.c FORCE
20	$(call rule_mkdir)
21	$(call if_changed_dep,cc_o_c)
22