xref: /linux/tools/perf/jvmti/Build (revision 6a6fac11b11299aa5bd8532ea863fc2f652af2b6)
1d4dfdf00SJiri Olsajvmti-y += libjvmti.o
2d4dfdf00SJiri Olsajvmti-y += jvmti_agent.o
3d4dfdf00SJiri Olsa
479743bc9SArnaldo Carvalho de Melo# For strlcpy
5*6a6fac11SThomas Richterjvmti-y += libstring.o libctype.o
679743bc9SArnaldo Carvalho de Melo
7d4dfdf00SJiri OlsaCFLAGS_jvmti         = -fPIC -DPIC -I$(JDIR)/include -I$(JDIR)/include/linux
8d4dfdf00SJiri OlsaCFLAGS_REMOVE_jvmti  = -Wmissing-declarations
9d4dfdf00SJiri OlsaCFLAGS_REMOVE_jvmti += -Wstrict-prototypes
10d4dfdf00SJiri OlsaCFLAGS_REMOVE_jvmti += -Wextra
11d4dfdf00SJiri OlsaCFLAGS_REMOVE_jvmti += -Wwrite-strings
1279743bc9SArnaldo Carvalho de Melo
1379743bc9SArnaldo Carvalho de MeloCFLAGS_libstring.o += -Wno-unused-parameter -DETC_PERFCONFIG="BUILD_STR($(ETC_PERFCONFIG_SQ))"
1479743bc9SArnaldo Carvalho de Melo
1579743bc9SArnaldo Carvalho de Melo$(OUTPUT)jvmti/libstring.o: ../lib/string.c FORCE
1679743bc9SArnaldo Carvalho de Melo	$(call rule_mkdir)
1779743bc9SArnaldo Carvalho de Melo	$(call if_changed_dep,cc_o_c)
18*6a6fac11SThomas Richter
19*6a6fac11SThomas Richter$(OUTPUT)jvmti/libctype.o: ../lib/ctype.c FORCE
20*6a6fac11SThomas Richter	$(call rule_mkdir)
21*6a6fac11SThomas Richter	$(call if_changed_dep,cc_o_c)
22