source: branches/gcc-kmk/Config.kmk@ 21746

Last change on this file since 21746 was 21746, checked in by dmik, 14 years ago

Add handler to compile .orc source files with Wine RC.

  • Property svn:eol-style set to native
File size: 2.9 KB
Line 
1## @file
2# Global Project Configuration File
3#
4
5#------------------------------------------------------------------------------
6# Global definitions
7#------------------------------------------------------------------------------
8
9# Handler for Wine RC (.orc) source files
10KBUILD_SRC_HANDLERS += .orc:def_src_handler_wrc
11define def_src_handler_wrc
12local type := WRC
13 $(kb-src-one 2)
14endef
15
16#------------------------------------------------------------------------------
17# Tools
18#------------------------------------------------------------------------------
19
20# Add support for Wine RC to the GCC compiler
21TOOL_GXX3OMF_WRC = $(PATH_STAGE_BIN)/winerc.exe
22TOOL_GXX3OMF_WRCOBJSUFF = .o
23TOOL_GXX3OMF_COMPILE_WRC_OUTPUT = $(outbase).orc.s
24TOOL_GXX3OMF_COMPILE_WRC_DEPEND =
25TOOL_GXX3OMF_COMPILE_WRC_DEPORD =
26define TOOL_GXX3OMF_COMPILE_WRC_CMDS
27 $(QUIET)$(TOOL_GXX3OMF_WRC) -s\
28 $(flags) $(addprefix -I, $(subst /,\\,$(incs))) $(addprefix -D, $(defs))\
29 $(subst /,\\,$(abspath $(source))) \
30 -o $(TOOL_GXX3OMF_COMPILE_WRC_OUTPUT)
31 $(subst $(source),$(TOOL_GXX3OMF_COMPILE_WRC_OUTPUT),$(TOOL_GXX3OMF_COMPILE_AS_CMDS)))
32endef
33
34#------------------------------------------------------------------------------
35# Common libraries referenced by components
36#------------------------------------------------------------------------------
37
38#------------------------------------------------------------------------------
39# General Stuff
40#------------------------------------------------------------------------------
41
42TEMPLATE_OdinCxx = Odin C/C++ sources
43TEMPLATE_OdinCxx_TOOL = GXX3OMF
44TEMPLATE_OdinCxx_INCS = $(PATH_ROOT)/include/win $(PATH_ROOT)/include $(PATH_ROOT)/include/incl_gcc
45TEMPLATE_OdinCxx_DEFS = __WIN32OS2__ __WINE__ __i386__ TCPV40HDRS COMCTL32UNDOC
46
47TEMPLATE_OdinCRT = OdinCRT library
48TEMPLATE_OdinCRT_EXTENDS = OdinCxx
49TEMPLATE_OdinCRT_EXTENDS_BY = overriding
50TEMPLATE_OdinCRT_DEFS = __WIN32OS2__ __WINE__ __i386__
51
52TEMPLATE_OdinCRT = Win32 application
53TEMPLATE_OdinCRT_EXTENDS = OdinCxx
54TEMPLATE_OdinCRT_EXTENDS_BY = overriding
55TEMPLATE_OdinCRT_DEFS = __WIN32OS2__ __i386__
56
57TEMPLATE_OdinCxxDLL = Odin C/C++ DLL
58TEMPLATE_OdinCxxDLL_EXTENDS = OdinCxx
59TEMPLATE_OdinCxxDLL_EXTENDS_BY = overriding
60TEMPLATE_OdinCxxDLL_LIBS = $(TEMPLATE_OdinCxx_LIBS) $(INSTTARGET_initdll)
61
62#------------------------------------------------------------------------------
63# GCC Stuff
64#------------------------------------------------------------------------------
65
66#------------------------------------------------------------------------------
67# Other Stuff
68#------------------------------------------------------------------------------
69
70#
71# Include a site-specific config for local overrides
72#
73ifndef LOCALCFG
74 LOCALCFG := $(wildcard $(PATH_ROOT)/LocalConfig.kmk)
75 ifneq ($(LOCALCFG),)
76 include $(LOCALCFG)
77 endif
78endif
Note: See TracBrowser for help on using the repository browser.