dnl (c)INRIA,ROBOSOFT 1999 Christophe.Lavarenne@inria.fr, pierre@robosoft.fr dnl $Id: 555.m4m,v 1.1 2000/04/17 12:59:43 lavarenn Exp $ divert(-1) # SynDEx v5 Makefile generator for mpc555 ifdef(`syndex.m4m_already_included',,`errprint( __file__:__line__: m4: syndex.m4m must be included before __file__! )m4exit(1)') # ------------------------------------------------------------------------ # When this file is loaded, by the processor_ macro defined in syndex.m4m, # the macro appli_() expands to the name of the application, and # the macro procr_() expands to the name of a processor (of type 555), # the macro gateTypes_() expands to the list of gateType.m4x filenames. divert`'dnl ------------------------------------------------------------ ifdef(__file__`_already_included',,`define(__file__`_already_included')dnl CC555=ppc-elf32-gcc %.555 : %.c $(CC555) -o $@ $(CFLAGS) -O2 -c $< %.555 : %.s $(CC555) -o $@ -c $< ')dnl procr_ : procr_.elf elf2sdxbin $< $@ procr_.elf : procr_.555 $(procr_.libs) $(CC555) -o $@ $^ -lm -Wl,-L$(M4PATH),-T,555.ld,-Map,$@.map procr_.s : procr_.m4 syndex.m4x 555.m4x appli_.m4x gateTypes_ $(M4) $< >$@ clean :: $(RM) procr_ procr_.elf procr_.555 procr_.s procr_.elf.map dnl -------------------------- end of file -----------------------------