Subversion Repositories Spectranet

[/] [branches/] [gnubinutils/] [rom/] [Makefile] - Diff between revs 383 and 384

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 383 Rev 384
Line 1... Line 1...
MAP2SYM = ../buildtools/map2sym
MAP2SYM = ../buildtools/map2sym
 
 
 
P0OBJS = zeropage.o reset.o trapdispatch.o w5100_ifconfig.o w5100_genintfunc.o w5100_buffer.o w5100_sockalloc.o w5100_sockctrl.o w5100_rxtx.o dns.o utility.o ui_input.o ui_output_stub.o progtrap.o basicextn.o pagealloc.o vfs.o w5100_sockinfo.o
 
P0OUT = page0.bin
 
P0LDFLAGS = -T page0.ld -Map $(P0OUT).map -L ../syslib
 
P0LIBS = -lpager
 
 
P1OBJS = ui_charset.o ui_keyscan.o ui_output.o ui_lookup.o
P1OBJS = ui_charset.o ui_keyscan.o ui_output.o ui_lookup.o
P1OUT = page1.bin
P1OUT = page1.bin
P1LDFLAGS = -T page1.ld -Map $(P1OUT).map
P1LDFLAGS = -T page1.ld -Map $(P1OUT).map
 
 
P2OBJS = utilromvectors.o utility_impl.o utilnmi.o save7ffd.o utilnmi_en.o
P2OBJS = utilromvectors.o utility_impl.o utilnmi.o save7ffd.o utilnmi_en.o
Line 16... Line 21...
MODMANOBJS = romconfigmain.o romconfstrings_en.o
MODMANOBJS = romconfigmain.o romconfstrings_en.o
MODMANOUT = modman.bin
MODMANOUT = modman.bin
MODMANLDFLAGS = -T modman.ld -L ../syslib -Map $(MODMANOUT).map
MODMANLDFLAGS = -T modman.ld -L ../syslib -Map $(MODMANOUT).map
MODMANLIBS = -lromui -lflashwrite
MODMANLIBS = -lromui -lflashwrite
 
 
 
JPTABLEOBJS = jumptable.o
 
JPTABLEOUT = jumptable.bin
 
JPTABLELDFLAGS = -Ttext 0x0000
 
 
DATEFILE = date.xinc
DATEFILE = date.xinc
VERFILE = ver.xinc
VERFILE = ver.xinc
P3SYMS = page3.xinc
P3SYMS = page3.xinc
P2SYMS = page2.xinc
P2SYMS = page2.xinc
P1SYMS = page1.xinc
P1SYMS = page1.xinc
 
P0SYMS = page0.xinc
 
 
 
all:    page0 page1 page2 page3 jptable
 
 
all:    page1 page2 page3 modman
page0:  ver p1syms p2syms p3syms $(P0OBJS)
 
        $(LD) -o $(P0OUT) $(P0OBJS) $(P0LDFLAGS) $(P0LIBS)
 
 
page1:  $(P1OBJS)
page1:  $(P1OBJS)
        $(LD) -o $(P1OUT) $(P1OBJS) $(P1LDFLAGS) $(P1LIBS)
        $(LD) -o $(P1OUT) $(P1OBJS) $(P1LDFLAGS) $(P1LIBS)
 
 
page2:  modman $(P2OBJS)
page2:  modman $(P2OBJS)
Line 36... Line 49...
        $(LD) -o $(P3OUT) $(P3OBJS) $(P3LDFLAGS) $(P3LIBS)
        $(LD) -o $(P3OUT) $(P3OBJS) $(P3LDFLAGS) $(P3LIBS)
 
 
modman: $(MODMANOBJS)
modman: $(MODMANOBJS)
        $(LD) -o $(MODMANOUT) $(MODMANOBJS) $(MODMANLDFLAGS) $(MODMANLIBS)
        $(LD) -o $(MODMANOUT) $(MODMANOBJS) $(MODMANLDFLAGS) $(MODMANLIBS)
 
 
 
jptable:        p0syms $(JPTABLEOBJS)
 
        $(LD) -o $(JPTABLEOUT) $(JPTABLEOBJS) $(JPTABLELDFLAGS)
 
 
date:   $(DATEFILE)
date:   $(DATEFILE)
$(DATEFILE):
$(DATEFILE):
        echo "blddate: defb \"`date`\",0x0a,0" > $(DATEFILE)
        echo "blddate: defb \"`date`\",0x0a,0" > $(DATEFILE)
 
 
ver:    $(VERFILE)
ver:    $(VERFILE)
$(VERFILE):
$(VERFILE):
        echo "bldstr: defb \"gnubinutils\",0x0a,0" > $(VERFILE)
        echo "bldstr: defb \"gnubinutils\",0x0a,0" > $(VERFILE)
 
 
 
p0syms: page0 $(P0SYMS)
 
$(P0SYMS):
 
        $(MAP2SYM) $(P0OUT).map $(P0SYMS)
 
 
p1syms: page1 $(P1SYMS)
p1syms: page1 $(P1SYMS)
 
$(P1SYMS):
        $(MAP2SYM) $(P1OUT).map $(P1SYMS)
        $(MAP2SYM) $(P1OUT).map $(P1SYMS)
 
 
p2syms: page2 $(P2SYMS)
p2syms: page2 $(P2SYMS)
$(P2SYMS):
$(P2SYMS):
        $(MAP2SYM) $(P2OUT).map $(P2SYMS)
        $(MAP2SYM) $(P2OUT).map $(P2SYMS)