mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +03:00
Build !Run at compile time. This ensures that the WimpSlot size is always correct.
svn path=/trunk/netsurf/; revision=5889
This commit is contained in:
parent
3e71585311
commit
71db29f5b0
12
Makefile
12
Makefile
@ -116,6 +116,8 @@ ifeq ($(TARGET),riscos)
|
||||
GCCSDK_INSTALL_ENV := <NSLibs$$Dir>
|
||||
CCRES := ccres
|
||||
TPLEXT :=
|
||||
MAKERUN := makerun
|
||||
RUNEXT :=
|
||||
CC := gcc
|
||||
EXEEXT :=
|
||||
PKG_CONFIG :=
|
||||
@ -126,6 +128,8 @@ ifeq ($(TARGET),riscos)
|
||||
GCCSDK_INSTALL_CROSSBIN ?= /home/riscos/cross/bin
|
||||
CCRES := $(GCCSDK_INSTALL_CROSSBIN)/ccres
|
||||
TPLEXT := ,fec
|
||||
MAKERUN := $(GCCSDK_INSTALL_CROSSBIN)/makerun
|
||||
RUNEXT := ,feb
|
||||
CC := $(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*gcc)
|
||||
ifneq (,$(findstring arm-unknown-riscos-gcc,$(CC)))
|
||||
SUBTARGET := -elf
|
||||
@ -545,6 +549,8 @@ $(DEPROOT)/created: $(OBJROOT)/created
|
||||
|
||||
CLEANS := clean-target
|
||||
|
||||
POSTEXES :=
|
||||
|
||||
include Makefile.sources
|
||||
|
||||
OBJECTS := $(sort $(addprefix $(OBJROOT)/,$(subst /,_,$(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(patsubst %.s,%.o,$(SOURCES)))))))
|
||||
@ -595,7 +601,7 @@ ifeq ($(TARGET),riscos)
|
||||
define compile_template
|
||||
!NetSurf/Resources/$(1)/Templates$$(TPLEXT): $(2)
|
||||
$$(VQ)echo "TEMPLATE: $(2)"
|
||||
$$(Q)$$(CC) -x c -E -P $$(CFLAGS) $(2) > processed_template
|
||||
$$(Q)$$(CC) -x c -E -P $$(CFLAGS) -o processed_template $(2)
|
||||
$$(Q)$$(CCRES) processed_template $$(subst /,.,$$@)
|
||||
$$(Q)$(RM) processed_template
|
||||
CLEAN_TEMPLATES += !NetSurf/Resources/$(1)/Templates$$(TPLEXT)
|
||||
@ -629,7 +635,9 @@ clean-builddir:
|
||||
$(Q)$(RM) -r $(OBJROOT)
|
||||
CLEANS += clean-builddir
|
||||
|
||||
all-program: $(EXETARGET)
|
||||
all-program: $(EXETARGET) post-exe
|
||||
|
||||
post-exe: $(POSTEXES)
|
||||
|
||||
.SUFFIXES:
|
||||
|
||||
|
@ -161,6 +161,16 @@ CLEANS += clean-intermediates
|
||||
# Finally select the correct set of sources for this build...
|
||||
|
||||
ifeq ($(TARGET),riscos)
|
||||
!NetSurf/!Run$(RUNEXT): riscos/scripts/Run
|
||||
$(VQ)echo " MAKERUN: $@"
|
||||
$(Q)$(MAKERUN) $(EXETARGET) $< $@
|
||||
POSTEXES += !NetSurf/!Run$(RUNEXT)
|
||||
|
||||
clean-run:
|
||||
$(VQ)echo " CLEAN: !NetSurf/!Run$(RUNEXT)"
|
||||
$(Q) $(RM) !NetSurf/!Run$(RUNEXT)
|
||||
CLEANS += clean-run
|
||||
|
||||
SOURCES := $(S_COMMON) $(S_IMAGE) $(S_BROWSER) $(S_PDF) $(S_RISCOS)
|
||||
EXETARGET := !NetSurf/!RunImage$(EXEEXT)
|
||||
endif
|
||||
|
@ -105,7 +105,7 @@ CDir <Wimp$ScrapDir>.WWW.NetSurf
|
||||
| NB: trailing dot is required
|
||||
FontInstall NetSurf:Resources.Fonts.
|
||||
|
||||
WimpSlot -min 2240k -max 2240k
|
||||
WIMPSLOT
|
||||
Run <NetSurf$Dir>.!RunImage -v %*0 2><Wimp$ScrapDir>.WWW.NetSurf.Log
|
||||
|
||||
| Uninstall NetSurf-specific fonts
|
Loading…
Reference in New Issue
Block a user