Changeset 1981 for trunk/build


Ignore:
Timestamp:
Oct 6, 2012, 12:42:06 AM (8 years ago)
Author:
sam
Message:

ps3: refactor elf → self build logic and make make_fself mandatory
when building for the PS3 on a Unix system.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build/autotools/common.am

    r1939 r1981  
     1
     2#
     3# Define these variables from the beginning
     4#
     5
     6CLEANFILES =
     7SUFFIXES =
     8
     9
     10#
     11# Miscellaneous rules
     12#
    113
    214lol_recursive_rule = \
    315        @if test -n "$(SUBDIRS)"; then for subdir in $(SUBDIRS); do \
    4             ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $(patsubst %-recursive, %, $@)) || exit 1; \
    5           done; \
    6         fi
     16          ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $(patsubst %-recursive, %, $@)) || exit 1; \
     17        done; fi
    718
    819bench: bench-recursive
     
    4758lolfx_gen_0 = @echo "  LOLFX " $@;
    4859
    49 SUFFIXES = .lolfx
     60SUFFIXES += .lolfx
    5061.lolfx.o:
    5162        $(lolfx_gen)
     
    5869
    5970#
     71# PS3 fself support rules
     72#
     73
     74fself_gen = $(fself_gen_$(V))
     75fself_gen_ = $(fself_gen_$(AM_DEFAULT_VERBOSITY))
     76fself_gen_0 = echo "  FSELF " $${x}.self;
     77fself_gen_1 = echo make_fself $${x}$(EXEEXT) $${x}.self;
     78
     79all-local: all-local-ps3
     80all-local-ps3: $(PROGRAMS) $(noinst_PROGRAMS)
     81        @if test -n "$^"; then for x in $(^:%$(EXEEXT)=%); do \
     82          if test x$(MAKE_FSELF) != xno; then \
     83            $(fself_gen) \
     84            make_fself $${x}$(EXEEXT) $${x}.self; \
     85          fi; \
     86        done; fi
     87
     88CLEANFILES += $(PROGRAMS:%$(EXEEXT)=%.self) \
     89              $(PROGRAMS:%$(EXEEXT)=%.elf) \
     90              $(noinst_PROGRAMS:%$(EXEEXT)=%.self) \
     91              $(noinst_PROGRAMS:%$(EXEEXT)=%.elf)
     92
     93
     94#
     95# Win32 rules
     96#
     97
     98# This is here in case we forget to make clean after a Windows build
     99CLEANFILES += $(PROGRAMS:%$(EXEEXT)=%.exe) \
     100              $(noinst_PROGRAMS:%$(EXEEXT)=%.exe)
     101
     102
     103#
    60104# Additional rules
    61105#
Note: See TracChangeset for help on using the changeset viewer.