Changeset 53974 in vbox for trunk/src/VBox/ExtPacks/VBoxDTrace/Makefile.kmk
- Timestamp:
- Jan 27, 2015 5:50:17 PM (10 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ExtPacks/VBoxDTrace/Makefile.kmk
r53972 r53974 1 1 # $Id$ 2 2 ## @file 3 # Sub-makefile for VBoxDTrace R0.3 # Sub-makefile for VBoxDTrace. 4 4 # 5 5 # Contributed by: bird … … 18 18 # 19 19 20 SUB_DEPTH = ../../../../ ../20 SUB_DEPTH = ../../../../ 21 21 include $(KBUILD_PATH)/subheader.kmk 22 22 23 24 # 25 # The generic wrapper that selects native or extpack dtrace cmd and adds our 26 # library path to the command line. 27 # 28 # Note! This is not installed as part of the extension pack, but always shipped 29 # with the base VBox installation. 30 # 23 31 PROGRAMS += VBoxDTrace 24 VBoxDTrace_TEMPLATE = VBOXR3NPEXE 25 VBoxDTrace_DEFS = RTMEM_WRAP_TO_EF_APIS 26 #VBoxDTrace_DEFS += YYDEBUG 27 VBoxDTrace_SDKS = VBOX_ZLIB 32 VBoxDTrace_TEMPLATE := VBOXR3EXE 33 VBoxDTrace_SOURCES := VBoxDTraceWrapper.cpp 34 VBoxDTrace_LIBS = $(LIB_RUNTIME) 35 36 37 # 38 # Install the description. 39 # 40 INSTALLS += VBoxDTraceIns 41 VBoxDTraceIns_TEMPLATE = VBoxInsExtPackDTrace 42 VBoxDTraceIns_SOURCES = \ 43 $(VBoxDTraceIns_0_OUTDIR)/ExtPack.xml \ 44 COPYING=>ExtPack-SourceCodeLicense.txt 45 $(call VBOX_EDIT_VERSION_RULE_FN,VBoxDTraceIns,ExtPack.xml) 46 47 48 # 49 # The ring-3 VBoxDTrace command implementation (library). 50 # 51 DLLS += VBoxDTraceCmd 52 VBoxDTraceCmd_TEMPLATE = VBoxR3ExtPackDTrace 53 VBoxDTraceCmd_DEFS = RTMEM_WRAP_TO_EF_APIS 54 #VBoxDTraceCmd_DEFS += YYDEBUG 55 VBoxDTraceCmd_SDKS = VBOX_ZLIB 28 56 ifn1of ($(KBUILD_TARGET), win) 29 VBoxDTrace _CFLAGS = -Wno-format57 VBoxDTraceCmd_CFLAGS = -Wno-format -Wno-overlength-strings -Wno-sign-compare -Wno-strict-prototypes -Wno-missing-prototypes -Wno-missing-declarations -Wno-shadow 30 58 endif 31 VBoxDTrace _INCS = \32 ../include \59 VBoxDTraceCmd_INCS = \ 60 include \ 33 61 $(VBOXDT_PATH_UTS)/common \ 34 62 $(VBOXDT_PATH_LIBCTF)/common \ 35 63 $(VBOXDT_PATH_LIBDTRACE)/common \ 36 64 $(VBOXDT_PATH_CMN_CTF) 37 VBoxDTrace _SOURCES = \65 VBoxDTraceCmd_SOURCES = \ 38 66 $(VBOXDT_PATH_CMD)/dtrace/dtrace.c \ 39 67 \ … … 70 98 $(VBOXDT_PATH_LIBDTRACE)/common/dt_xlator.c \ 71 99 \ 72 $(VBoxDTrace _0_OUTDIR)/dt_errtags.c \73 $(VBoxDTrace _0_OUTDIR)/dt_names.c \100 $(VBoxDTraceCmd_0_OUTDIR)/dt_errtags.c \ 101 $(VBoxDTraceCmd_0_OUTDIR)/dt_names.c \ 74 102 \ 75 103 $(VBOXDT_PATH_CMN_CTF)/ctf_create.c \ … … 87 115 88 116 if 1 89 USES += yacc90 VBoxDTrace _USES += yacc91 VBoxDTrace _YACCTOOL = BISON92 VBoxDTrace _YACCFLAGS = -d -y93 VBoxDTrace _SOURCES += \117 USES += yacc 118 VBoxDTraceCmd_USES += yacc 119 VBoxDTraceCmd_YACCTOOL = BISON 120 VBoxDTraceCmd_YACCFLAGS = -d -y 121 VBoxDTraceCmd_SOURCES += \ 94 122 $(VBOXDT_PATH_LIBDTRACE)/common/dt_grammar.y 95 VBoxDTrace _INCS += $(VBoxDTrace_0_OUTDIR)/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common123 VBoxDTraceCmd_INCS += $(VBoxDTraceCmd_0_OUTDIR)/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common 96 124 else 97 125 # TODO: generate these. … … 99 127 100 128 if 1 101 USES += lex102 VBoxDTrace _USES += lex103 VBoxDTrace _LEXTOOL = FLEX104 VBoxDTrace _LEXFLAGS = -l -B #-d -T105 VBoxDTrace _DEFS += USING_FLEX106 VBoxDTrace _SOURCES += \129 USES += lex 130 VBoxDTraceCmd_USES += lex 131 VBoxDTraceCmd_LEXTOOL = FLEX 132 VBoxDTraceCmd_LEXFLAGS = -l -B #-d -T 133 VBoxDTraceCmd_DEFS += USING_FLEX 134 VBoxDTraceCmd_SOURCES += \ 107 135 $(VBOXDT_PATH_LIBDTRACE)/common/dt_lex.l 108 136 else … … 110 138 endif 111 139 112 VBoxDTrace _LIBS = \140 VBoxDTraceCmd_LIBS = \ 113 141 $(LIB_RUNTIME) 114 142 115 143 116 144 # Generate sources 117 $$(VBoxDTrace _0_OUTDIR)/dt_errtags.c: \145 $$(VBoxDTraceCmd_0_OUTDIR)/dt_errtags.c: \ 118 146 $(VBOXDT_PATH_LIBDTRACE)/common/dt_errtags.h \ 119 147 $(VBOXDT_PATH_LIBDTRACE)/common/mkerrtags.sed \ 120 148 | $$(dir $$@) 121 $(MSG_GENERATE,VBoxDTrace ,$@,$<)149 $(MSG_GENERATE,VBoxDTraceCmd,$@,$<) 122 150 $(SED) -n -f $(VBOXDT_PATH_LIBDTRACE)/common/mkerrtags.sed --output $@ $< 123 151 124 $$(VBoxDTrace _0_OUTDIR)/dt_names.c: \152 $$(VBoxDTraceCmd_0_OUTDIR)/dt_names.c: \ 125 153 $(VBOXDT_PATH_UTS)/common/sys/dtrace.h \ 126 154 $(VBOXDT_PATH_LIBDTRACE)/common/mknames.sed \ 127 155 | $$(dir $$@) 128 $(MSG_GENERATE,VBoxDTrace ,$@,$<)156 $(MSG_GENERATE,VBoxDTraceCmd,$@,$<) 129 157 $(SED) -n -f $(VBOXDT_PATH_LIBDTRACE)/common/mknames.sed --output $@ $< 130 158 131 159 132 160 # 133 # Sour nce not used or wanted: \161 # Source not used or wanted: \ 134 162 # $(VBOXDT_PATH_LIBDTRACE)/common/dt_link.c 135 163 # $(VBOXDT_PATH_LIBDTRACE)/common/dt_pid.c 136 164 # 137 165 166 167 # 168 # The ring-0 part of VBoxDTrace. 169 # 170 SYSMODS += VBoxDTraceR0 171 VBoxDTraceR0_TEMPLATE = VBoxR0ExtPackDTrace 172 VBoxDTraceR0_DEFS = IN_VBOXDTRACE_R0 IN_RT_R0 173 ifeq ($(VBOX_LDR_FMT),elf) 174 VBoxDTraceR0_LDFLAGS = -e ModuleInit 175 endif 176 VBoxDTraceR0_INCS = \ 177 include \ 178 $(VBOXDT_PATH_UTS)/common 179 VBoxDTraceR0_SOURCES = \ 180 VBoxDTraceR0.cpp \ 181 VBoxDTraceR0A.asm \ 182 $(VBOXDT_PATH_UTS)/common/dtrace/dtrace.c 183 VBoxDTraceR0_LIBS = \ 184 $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) 185 ifneq ($(filter pe lx,$(VBOX_LDR_FMT)),) 186 VBoxDTraceR0_LIBS += \ 187 $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB) 188 endif 189 190 138 191 include $(FILE_KBUILD_SUB_FOOTER) 139 192
Note:
See TracChangeset
for help on using the changeset viewer.