Subversion Repositories DevTools

Rev

Rev 5709 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5709 Rev 6177
Line 1... Line 1...
1
###############################################################################
1
###############################################################################
2
# Copyright (c) VIX TECHNOLOGY (AUST) LTD
2
# COPYRIGHT - VIX IP PTY LTD ("VIX"). ALL RIGHTS RESERVED.
3
#
3
#
4
# File:         TOOLSET/delphi7.rul[e]
4
# File:         TOOLSET/delphi7.rul[e]
5
# Contents:     Rules to build Delphi
5
# Contents:     Rules to build Delphi
6
#
6
#
7
###############################################################################
7
###############################################################################
Line 102... Line 102...
102
#
102
#
103
# Delphi has a mind of its own
103
# Delphi has a mind of its own
104
# Must check that its doing what we want to prevent the user doing silly things
104
# Must check that its doing what we want to prevent the user doing silly things
105
#
105
#
106
define DCC
106
define DCC
107
	@echo [$(notdir $(PSOURCE))] compiling prog..
107
	@echo '[$(notdir $(PSOURCE))] compiling prog..'
108
        $(AA_PRE)-rm -f $@
108
        $(AA_PRE)-rm -f $@
109
        $(XX_PRE)$(DELPHI7)/bin/dcc32 $(dcc_common_flags) -E$(BINDIR) $(PFLAGS) -N$(OBJDIR) $(patsubst %,-LU%,$(PACKAGES)) $(subst /,\\,$(PSOURCE))
109
        $(XX_PRE)$(DELPHI7)/bin/dcc32 $(dcc_common_flags) -E$(BINDIR) $(PFLAGS) -N$(OBJDIR) $(patsubst %,-LU%,$(PACKAGES)) $(subst /,\\,$(PSOURCE))
110
        $(AA_PRE)if [ ! -f $@ ] ; then echo "[Make] (E) Build artifact not found: $@"; exit 1; fi
110
        $(AA_PRE)if [ ! -f $@ ] ; then echo "[Make] (E) Build artifact not found: $@"; exit 1; fi
111
endef
111
endef
112
 
112
 
Line 124... Line 124...
124
#
124
#
125
# Put any DCUs that are created into the OBJ directory
125
# Put any DCUs that are created into the OBJ directory
126
# Since they are created as a side effect we can hide them away
126
# Since they are created as a side effect we can hide them away
127
#
127
#
128
define SHDCC
128
define SHDCC
129
	@echo [$(notdir $(PSOURCE))] compiling library..
129
	@echo '[$(notdir $(PSOURCE))] compiling library..'
130
        $(AA_PRE)-rm -f $@
130
        $(AA_PRE)-rm -f $@
131
        $(XX_PRE)$(DELPHI7)/bin/dcc32 $(dcc_common_flags) -E$(LIBDIR) -LE$(LIBDIR)  $(PFLAGS) -LN$(LIBDIR) -N$(OBJDIR)/$(SHLIBBASE) $(patsubst %,-LU%,$(PACKAGES)) $(subst /,\\,$(PSOURCE))
131
        $(XX_PRE)$(DELPHI7)/bin/dcc32 $(dcc_common_flags) -E$(LIBDIR) -LE$(LIBDIR)  $(PFLAGS) -LN$(LIBDIR) -N$(OBJDIR)/$(SHLIBBASE) $(patsubst %,-LU%,$(PACKAGES)) $(subst /,\\,$(PSOURCE))
132
        $(AA_PRE)if [ ! -f $@ ] ; then echo "[Make] (E) Build artifact not found: $@"; exit 1; fi
132
        $(AA_PRE)if [ ! -f $@ ] ; then echo "[Make] (E) Build artifact not found: $@"; exit 1; fi
133
endef
133
endef
134
 
134
 
Line 136... Line 136...
136
# Rule to create a .LIB from a .DLL
136
# Rule to create a .LIB from a .DLL
137
# Defs:
137
# Defs:
138
#	TMPFILE		- PAth of temp file
138
#	TMPFILE		- PAth of temp file
139
#
139
#
140
define IMPLIB
140
define IMPLIB
141
	@echo [$(notdir $(notdir $@))] create import library..
141
	@echo '[$(notdir $(notdir $@))] create import library..'
142
        $(AA_PRE)if [ ! -x "$(BCB_IMPDEF_PATH)/impdef.exe" ] ; then echo "[Make] (E) Need, from borland builder: $(BCB_IMPDEF_PATH)/impdef"; exit 1; fi
142
        $(AA_PRE)if [ ! -x "$(BCB_IMPDEF_PATH)/impdef.exe" ] ; then echo "[Make] (E) Need, from borland builder: $(BCB_IMPDEF_PATH)/impdef"; exit 1; fi
143
        $(AA_PRE)if [ ! -x "$(MS_LINK_PATH)/link.exe" ] ; then echo "[Make] (E) Need, from MS VC6: $(MS_LINK_PATH)/link"; exit 1; fi
143
        $(AA_PRE)if [ ! -x "$(MS_LINK_PATH)/link.exe" ] ; then echo "[Make] (E) Need, from MS VC6: $(MS_LINK_PATH)/link"; exit 1; fi
144
        $(AA_PRE)-rm -f $@ $(TMPFILE)
144
        $(AA_PRE)-rm -f $@ $(TMPFILE)
145
        $(XX_PRE)$(BCB_IMPDEF_PATH)/impdef $(TMPFILE) $<
145
        $(XX_PRE)$(BCB_IMPDEF_PATH)/impdef $(TMPFILE) $<
146
        $(XX_PRE)$(MS_LINK_PATH)/link /lib /machine:ix86 /def:$(TMPFILE) /out:$@
146
        $(XX_PRE)$(MS_LINK_PATH)/link /lib /machine:ix86 /def:$(TMPFILE) /out:$@
Line 155... Line 155...
155
#
155
#
156
# Delphi has a mind of its own
156
# Delphi has a mind of its own
157
# Must check that its doing what we want to prevent the user doing silly things
157
# Must check that its doing what we want to prevent the user doing silly things
158
#
158
#
159
define DCC_AR
159
define DCC_AR
160
	@echo [$(notdir $(PSOURCE))] compiling unit..
160
	@echo '[$(notdir $(PSOURCE))] compiling unit..'
161
        $(AA_PRE)-rm -f $@
161
        $(AA_PRE)-rm -f $@
162
        $(XX_PRE)$(DELPHI7)/bin/dcc32 $(dcc_common_flags) -E$(BINDIR) $(PFLAGS) -N$(LIBDIR) $(patsubst %,-LU%,$(PACKAGES)) $(subst /,\\,$(PSOURCE))
162
        $(XX_PRE)$(DELPHI7)/bin/dcc32 $(dcc_common_flags) -E$(BINDIR) $(PFLAGS) -N$(LIBDIR) $(patsubst %,-LU%,$(PACKAGES)) $(subst /,\\,$(PSOURCE))
163
        $(AA_PRE)if [ ! -f $@ ] ; then echo "[Make] (E) Build artifact not found: $@"; exit 1; fi
163
        $(AA_PRE)if [ ! -f $@ ] ; then echo "[Make] (E) Build artifact not found: $@"; exit 1; fi
164
endef
164
endef
165
 
165
 
Line 167... Line 167...
167
# Rule to compile a resource file
167
# Rule to compile a resource file
168
#	$@ - Target
168
#	$@ - Target
169
#	$< - source file ( first prereq: MUST BE )
169
#	$< - source file ( first prereq: MUST BE )
170
#
170
#
171
define DRES
171
define DRES
172
	@echo [$(notdir $(@))] Compile Resource..
172
	@echo '[$(notdir $(@))] Compile Resource..'
173
        $(XX_PRE)$(DELPHI7)/bin/brcc32 -fo$@ -x $< $(patsubst %,-i%,$(dcc_includes))
173
        $(XX_PRE)$(DELPHI7)/bin/brcc32 -fo$@ -x $< $(patsubst %,-i%,$(dcc_includes))
174
endef
174
endef
175
 
175