VirtualBox

Changeset 2618 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 14, 2007 10:13:47 AM (18 years ago)
Author:
vboxsync
Message:

converted Makefile to use INSTALLS target

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/Makefile.kmk

    r2516 r2618  
    3838endif
    3939
     40INSTALLS.linux = vboxmod-bin vboxmod-sh
    4041
    4142#
     
    4546
    4647
    47 ifeq ($(BUILD_TARGET),linux)
    48 ## @todo change this to use a INSTALLS target.
    49 EXPORT_FILE_PAIRS := \
    50         include/iprt/alloc.h=$(PATH_ROOT)/include/iprt/alloc.h \
    51         include/iprt/asm.h=$(PATH_ROOT)/include/iprt/asm.h \
    52         include/iprt/assert.h=$(PATH_ROOT)/include/iprt/assert.h \
    53         include/iprt/cdefs.h=$(PATH_ROOT)/include/iprt/cdefs.h \
    54         include/iprt/err.h=$(PATH_ROOT)/include/iprt/err.h \
    55         include/iprt/heap.h=$(PATH_ROOT)/include/iprt/heap.h \
    56         include/iprt/initterm.h=$(PATH_ROOT)/include/iprt/initterm.h \
    57         include/iprt/log.h=$(PATH_ROOT)/include/iprt/log.h \
    58         include/iprt/mem.h=$(PATH_ROOT)/include/iprt/mem.h \
    59         include/iprt/param.h=$(PATH_ROOT)/include/iprt/param.h \
    60         include/iprt/process.h=$(PATH_ROOT)/include/iprt/process.h \
    61         include/iprt/semaphore.h=$(PATH_ROOT)/include/iprt/semaphore.h \
    62         include/iprt/spinlock.h=$(PATH_ROOT)/include/iprt/spinlock.h \
    63         include/iprt/stdarg.h=$(PATH_ROOT)/include/iprt/stdarg.h \
    64         include/iprt/stdint.h=$(PATH_ROOT)/include/iprt/stdint.h \
    65         include/iprt/string.h=$(PATH_ROOT)/include/iprt/string.h \
    66         include/iprt/thread.h=$(PATH_ROOT)/include/iprt/thread.h \
    67         include/iprt/types.h=$(PATH_ROOT)/include/iprt/types.h \
    68         include/iprt/avl.h=$(PATH_ROOT)/include/iprt/avl.h \
    69         include/VBox/cdefs.h=$(PATH_ROOT)/include/VBox/cdefs.h \
    70         include/VBox/log.h=$(PATH_ROOT)/include/VBox/log.h \
    71         include/VBox/sup.h=$(PATH_ROOT)/include/VBox/sup.h \
    72         include/VBox/types.h=$(PATH_ROOT)/include/VBox/types.h \
    73         include/internal/initterm.h=$(PATH_ROOT)/src/VBox/Runtime/include/internal/initterm.h \
    74         include/internal/thread.h=$(PATH_ROOT)/src/VBox/Runtime/include/internal/thread.h \
    75         include/internal/magics.h=$(PATH_ROOT)/src/VBox/Runtime/include/internal/magics.h \
    76         linux/SUPDrv-linux.c=$(PATH_SUB_CURRENT)/linux/SUPDrv-linux.c \
    77         Makefile=$(PATH_SUB_CURRENT)/linux/Makefile \
    78         build_in_tmp=$(PATH_SUB_CURRENT)/linux/build_in_tmp \
    79         alloc/heapsimple.c=$(PATH_ROOT)/src/VBox/Runtime/alloc/heapsimple.cpp \
    80         r0drv/alloc-r0drv.c=$(PATH_ROOT)/src/VBox/Runtime/r0drv/alloc-r0drv.cpp \
    81         r0drv/alloc-r0drv.h=$(PATH_ROOT)/src/VBox/Runtime/r0drv/alloc-r0drv.h \
    82         r0drv/initterm-r0drv.c=$(PATH_ROOT)/src/VBox/Runtime/r0drv/initterm-r0drv.cpp \
    83         r0drv/linux/alloc-r0drv-linux.c=$(PATH_ROOT)/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c \
    84         r0drv/linux/initterm-r0drv-linux.c=$(PATH_ROOT)/src/VBox/Runtime/r0drv/linux/initterm-r0drv-linux.c \
    85         r0drv/linux/process-r0drv-linux.c=$(PATH_ROOT)/src/VBox/Runtime/r0drv/linux/process-r0drv-linux.c \
    86         r0drv/linux/semaphore-r0drv-linux.c=$(PATH_ROOT)/src/VBox/Runtime/r0drv/linux/semaphore-r0drv-linux.c \
    87         r0drv/linux/spinlock-r0drv-linux.c=$(PATH_ROOT)/src/VBox/Runtime/r0drv/linux/spinlock-r0drv-linux.c \
    88         r0drv/linux/string.h=$(PATH_ROOT)/src/VBox/Runtime/r0drv/linux/string.h \
    89         r0drv/linux/thread-r0drv-linux.c=$(PATH_ROOT)/src/VBox/Runtime/r0drv/linux/thread-r0drv-linux.c \
    90         r0drv/linux/the-linux-kernel.h=$(PATH_ROOT)/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h \
    91         version-generated.h=$(PATH_OUT)/version-generated.h \
    92         SUPDRV.h=$(PATH_SUB_CURRENT)/SUPDRV.h \
    93         SUPDRVIOC.h=$(PATH_SUB_CURRENT)/SUPDRVIOC.h \
    94         SUPDRVShared.c=$(PATH_SUB_CURRENT)/SUPDRVShared.c
    95 OTHERS       := $(foreach pair,$(EXPORT_FILE_PAIRS),$(PATH_BIN)/src/$(firstword $(subst =, ,$(pair))))
    96 OTHER_CLEAN   = $(OTHERS)
    97 endif # real linux
    98 
    99 
     48vboxmod-bin_INST    = bin/src/
     49vboxmod-bin_MODE    = a+r,u+w
     50vboxmod-bin_SOURCES = \
     51        $(PATH_ROOT)/include/iprt/alloc.h=>include/iprt/alloc.h \
     52        $(PATH_ROOT)/include/iprt/asm.h=>include/iprt/asm.h \
     53        $(PATH_ROOT)/include/iprt/assert.h=>include/iprt/assert.h \
     54        $(PATH_ROOT)/include/iprt/cdefs.h=>include/iprt/cdefs.h \
     55        $(PATH_ROOT)/include/iprt/err.h=>include/iprt/err.h \
     56        $(PATH_ROOT)/include/iprt/heap.h=>include/iprt/heap.h \
     57        $(PATH_ROOT)/include/iprt/initterm.h=>include/iprt/initterm.h \
     58        $(PATH_ROOT)/include/iprt/log.h=>include/iprt/log.h \
     59        $(PATH_ROOT)/include/iprt/mem.h=>include/iprt/mem.h \
     60        $(PATH_ROOT)/include/iprt/param.h=>include/iprt/param.h \
     61        $(PATH_ROOT)/include/iprt/process.h=>include/iprt/process.h \
     62        $(PATH_ROOT)/include/iprt/semaphore.h=>include/iprt/semaphore.h \
     63        $(PATH_ROOT)/include/iprt/spinlock.h=>include/iprt/spinlock.h \
     64        $(PATH_ROOT)/include/iprt/stdarg.h=>include/iprt/stdarg.h \
     65        $(PATH_ROOT)/include/iprt/stdint.h=>include/iprt/stdint.h \
     66        $(PATH_ROOT)/include/iprt/string.h=>include/iprt/string.h \
     67        $(PATH_ROOT)/include/iprt/thread.h=>include/iprt/thread.h \
     68        $(PATH_ROOT)/include/iprt/types.h=>include/iprt/types.h \
     69        $(PATH_ROOT)/include/iprt/avl.h=>include/iprt/avl.h \
     70        $(PATH_ROOT)/include/VBox/cdefs.h=>include/VBox/cdefs.h \
     71        $(PATH_ROOT)/include/VBox/log.h=>include/VBox/log.h \
     72        $(PATH_ROOT)/include/VBox/sup.h=>include/VBox/sup.h \
     73        $(PATH_ROOT)/include/VBox/types.h=>include/VBox/types.h \
     74        $(PATH_ROOT)/src/VBox/Runtime/include/internal/initterm.h=>include/internal/initterm.h \
     75        $(PATH_ROOT)/src/VBox/Runtime/include/internal/thread.h=>include/internal/thread.h \
     76        $(PATH_ROOT)/src/VBox/Runtime/include/internal/magics.h=>include/internal/magics.h \
     77        $(PATH_SUB_CURRENT)/linux/SUPDrv-linux.c=>linux/SUPDrv-linux.c \
     78        $(PATH_SUB_CURRENT)/linux/Makefile=>Makefile \
     79        $(PATH_ROOT)/src/VBox/Runtime/alloc/heapsimple.cpp=>alloc/heapsimple.c \
     80        $(PATH_ROOT)/src/VBox/Runtime/r0drv/alloc-r0drv.cpp=>r0drv/alloc-r0drv.c \
     81        $(PATH_ROOT)/src/VBox/Runtime/r0drv/alloc-r0drv.h=>r0drv/alloc-r0drv.h \
     82        $(PATH_ROOT)/src/VBox/Runtime/r0drv/initterm-r0drv.cpp=>r0drv/initterm-r0drv.c \
     83        $(PATH_ROOT)/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c=>r0drv/linux/alloc-r0drv-linux.c \
     84        $(PATH_ROOT)/src/VBox/Runtime/r0drv/linux/initterm-r0drv-linux.c=>r0drv/linux/initterm-r0drv-linux.c \
     85        $(PATH_ROOT)/src/VBox/Runtime/r0drv/linux/process-r0drv-linux.c=>r0drv/linux/process-r0drv-linux.c \
     86        $(PATH_ROOT)/src/VBox/Runtime/r0drv/linux/semaphore-r0drv-linux.c=>r0drv/linux/semaphore-r0drv-linux.c \
     87        $(PATH_ROOT)/src/VBox/Runtime/r0drv/linux/spinlock-r0drv-linux.c=>r0drv/linux/spinlock-r0drv-linux.c \
     88        $(PATH_ROOT)/src/VBox/Runtime/r0drv/linux/string.h=>r0drv/linux/string.h \
     89        $(PATH_ROOT)/src/VBox/Runtime/r0drv/linux/thread-r0drv-linux.c=>r0drv/linux/thread-r0drv-linux.c \
     90        $(PATH_ROOT)/src/VBox/Runtime/r0drv/linux/the-linux-kernel.h=>r0drv/linux/the-linux-kernel.h \
     91        $(PATH_OUT)/version-generated.h=>version-generated.h \
     92        $(PATH_SUB_CURRENT)/SUPDRV.h=>SUPDRV.h \
     93        $(PATH_SUB_CURRENT)/SUPDRVIOC.h=>SUPDRVIOC.h \
     94        $(PATH_SUB_CURRENT)/SUPDRVShared.c=>SUPDRVShared.c
     95
     96vboxmod-sh_INST     = bin/src
     97vboxmod-sh_MODE     = a+rx,u+w
     98vboxmod-sh_SOURCES  = \
     99        $(PATH_SUB_CURRENT)/linux/build_in_tmp=>build_in_tmp
    100100
    101101#
     
    249249endif
    250250
    251 
    252 #
    253 # Generate rules for exporting the linux sources.
    254 #
    255 define def_export_rule
    256 $(eval dst := $(word 1,$(subst =, ,$(pair))))
    257 $(eval src := $(word 2,$(subst =, ,$(pair))))
    258 $(PATH_BIN)/src/$(dst): $(src)
    259         $$(call MSG_INST_TRG,VBOXDRV,$$<,$$@)
    260         $$(QUIET)$$(MKDIR) -p $$(@D)
    261         $$(QUIET)$$(CP) $$< $$@
    262 
    263 symlinked/$(dst):
    264         $$(call MSG_INST_SYM,$$<,$$@)
    265         $$(QUIET)$$(MKDIR) -p $$(@D)
    266         $$(QUIET)ln -sfn $(abspath $(src)) $$@
    267 
    268 endef
    269 # generate rules
    270 $(foreach pair,$(EXPORT_FILE_PAIRS),$(eval $(def_export_rule)))
    271 
    272 
    273 #
    274 # Rule for creating a symlinked setup.
    275 #
    276 symlinked: $(subst $(PATH_BIN)/src/,symlinked/, $(OTHERS))
    277         $(ECHO) done
    278 
     251# symlinked??
    279252
    280253include $(PATH_KBUILD)/subfooter.kmk
    281 
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette