[mips]
- libsys multitarget - apps multitarget git-svn-id: http://moon:8086/svn/mips@67 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
+62
-71
@@ -1,5 +1,5 @@
|
||||
ENDIAN='big'
|
||||
BOARD=ml402
|
||||
ENDIANESS ?=eb
|
||||
BOARD ?=ml402
|
||||
|
||||
ifeq ($(TLB),yes)
|
||||
SPECNAME=specs_tlb
|
||||
@@ -7,14 +7,18 @@ else
|
||||
SPECNAME=specs
|
||||
endif
|
||||
|
||||
ifeq ($(ENDIAN), 'big')
|
||||
ifeq ($(ENDIANESS),eb)
|
||||
ENDIAN_FLAGS=-EB
|
||||
CFLAGS=$(ENDIAN_FLAGS) -specs=specs/eb/$(SPECNAME) -msoft-float -O2 -march=r3000 -I. -Ilibsys -Ilibsys/boards/$(BOARD) -Wl,-M
|
||||
CFLAGS:=$(ENDIAN_FLAGS) -specs=specs/eb/$(SPECNAME)
|
||||
else
|
||||
ENDIAN_FLAGS=-EL
|
||||
CFLAGS=$(ENDIAN_FLAGS) -specs=specs/$(SPECNAME) -msoft-float -O2 -march=r3000 -I. -Ilibsys -Ilibsys/boards/$(BOARD) -Wl,-M
|
||||
CFLAGS:=$(ENDIAN_FLAGS) -specs=specs/$(SPECNAME)
|
||||
endif
|
||||
|
||||
BUILD_DIR=build/$(BOARD)/$(ENDIANESS)
|
||||
LSYS_BUILD_DIR=libsys/build/$(BOARD)/$(ENDIANESS)
|
||||
|
||||
CFLAGS+=-msoft-float -O2 -march=r3000 -I. -Ilibsys -Ilibsys/boards/$(BOARD) -L$(LSYS_BUILD_DIR) -Wl,-M
|
||||
ifeq ($(TLB),yes)
|
||||
CFLAGS+=-DSYS_IO_BASE=0xAC000000 -DSDRAM_BASE=0x80000000 -DFLASH_BASE_IO=0xA4000000 -DFLASH_BASE_MEM=0x88000000
|
||||
else
|
||||
@@ -37,20 +41,16 @@ LD=mipsel-elf-ld
|
||||
OBJDUMP=mipsel-elf-objdump
|
||||
OBJCOPY=mipsel-elf-objcopy
|
||||
|
||||
PROG = hello.elf testbench.elf test_irq.elf dhry.elf queens.elf stanford.elf paranoia.elf rmd160_test.elf Bessel.elf whet.elf phrasen.elf dttl.elf richards_benchmark.elf test_exception.elf life.elf r3.elf gunzip.elf basic_math.elf jman_patches.elf jman_patchmeshes.elf jman_polys.elf test_hpi.elf test_vga.elf test_fft.elf
|
||||
PROG-ml402 = $(addprefix $(BUILD_DIR)/, hello.elf testbench.elf test_irq.elf dhry.elf queens.elf stanford.elf paranoia.elf rmd160_test.elf Bessel.elf whet.elf phrasen.elf dttl.elf richards_benchmark.elf test_exception.elf life.elf r3.elf gunzip.elf basic_math.elf jman_patches.elf jman_patchmeshes.elf jman_polys.elf test_hpi.elf test_vga.elf test_fft.elf)
|
||||
|
||||
.PHONY : libsys.a libsys_sim.a
|
||||
PROG-denano = $(addprefix $(BUILD_DIR)/, hello.elf dhry.elf queens.elf stanford.elf paranoia.elf rmd160_test.elf Bessel.elf whet.elf phrasen.elf dttl.elf richards_benchmark.elf test_exception.elf)
|
||||
|
||||
all: $(PROG)
|
||||
all: $(PROG-$(BOARD))
|
||||
|
||||
$(BUILD_DIR):
|
||||
mkdir -p $(BUILD_DIR)
|
||||
|
||||
libsys.a:
|
||||
$(MAKE) -C libsys BOARD=$(BOARD)
|
||||
|
||||
libsys_sim.a:
|
||||
$(MAKE) -C libsys
|
||||
|
||||
test_fft.elf: test_fft.c libsys.a
|
||||
$(BUILD_DIR)/test_fft.elf: $(BUILD_DIR) test_fft.c
|
||||
$(CC) $(CFLAGS) -o $@ -O2 fft.c test_fft.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -59,7 +59,7 @@ test_fft.elf: test_fft.c libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
hello.elf: hello.c libsys.a
|
||||
$(BUILD_DIR)/hello.elf: $(BUILD_DIR) hello.c
|
||||
$(CC) $(CFLAGS) -o $@ -Os hello.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -68,16 +68,7 @@ hello.elf: hello.c libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
hello_sim.elf: hello.c libsys_sim.a
|
||||
$(CC) $(CFLAGS) -o $@ -Os hello.c -lsys_sim >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
$(OBJCOPY) -O srec $@ $@.srec
|
||||
$(FLASHGEN) $@.bin $(ENDIAN_FLAGS)
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
blittertest.elf: blittertest.c libsys.a
|
||||
$(BUILD_DIR)/blittertest.elf: $(BUILD_DIR) blittertest.c
|
||||
$(CC) $(CFLAGS) -o $@ -Os blittertest.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -86,7 +77,7 @@ blittertest.elf: blittertest.c libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
blittertest_tb.elf: blittertest_tb.c libsys.a
|
||||
$(BUILD_DIR)/blittertest_tb.elf: $(BUILD_DIR) blittertest_tb.c
|
||||
$(CC) $(CFLAGS) -o $@ -Os blittertest_tb.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -95,7 +86,7 @@ blittertest_tb.elf: blittertest_tb.c libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
testbench.elf: testbench.c libsys.a
|
||||
$(BUILD_DIR)/testbench.elf: $(BUILD_DIR) testbench.c
|
||||
$(CC) $(CFLAGS) -O3 -o $@ -DHZ=1000 -DNOSIGNAL -DBATCHMODE -DNOMAIN -Os -g testbench.c paranoia.c delay_mips.c bogomips.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -104,7 +95,7 @@ testbench.elf: testbench.c libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
test_irq.elf: test_irq.c libsys.a
|
||||
$(BUILD_DIR)/test_irq.elf: $(BUILD_DIR) test_irq.c
|
||||
$(CC) $(CFLAGS) -o $@ test_irq.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -113,7 +104,7 @@ test_irq.elf: test_irq.c libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
dhry.elf: dhry_1.c dhry_2.c dhry.h libsys.a
|
||||
$(BUILD_DIR)/dhry.elf: $(BUILD_DIR) dhry_1.c dhry_2.c dhry.h
|
||||
$(CC) $(CFLAGS) -O3 -o $@ -DHZ=1000 dhry_1.c dhry_2.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -122,7 +113,7 @@ dhry.elf: dhry_1.c dhry_2.c dhry.h libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
queens.elf: queens.c libsys.a
|
||||
$(BUILD_DIR)/queens.elf: $(BUILD_DIR) queens.c
|
||||
$(CC) $(CFLAGS) -o $@ -DUNIX_Old -DHZ=1000 queens.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -131,7 +122,7 @@ queens.elf: queens.c libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
stanford.elf: stanford.c libsys.a
|
||||
$(BUILD_DIR)/stanford.elf: $(BUILD_DIR) stanford.c
|
||||
$(CC) $(CFLAGS) -O3 -o $@ -DHZ=1000 stanford.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -140,7 +131,7 @@ stanford.elf: stanford.c libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
paranoia.elf: paranoia.c libsys.a
|
||||
$(BUILD_DIR)/paranoia.elf: $(BUILD_DIR) paranoia.c
|
||||
$(CC) $(CFLAGS) -O3 -o $@ -DNOSIGNAL -DBATCHMODE paranoia.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -149,7 +140,7 @@ paranoia.elf: paranoia.c libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
rmd160_test.elf: rmd160_test.c rmd160.c rmd160.h libsys.a
|
||||
$(BUILD_DIR)/rmd160_test.elf: rmd160_test.c rmd160.c rmd160.h
|
||||
$(CC) $(CFLAGS) -O3 -o $@ rmd160_test.c rmd160.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -158,7 +149,7 @@ rmd160_test.elf: rmd160_test.c rmd160.c rmd160.h libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
hashtest.elf: hashtest.c rmd160.c rmd160.h libsys.a
|
||||
$(BUILD_DIR)/hashtest.elf: $(BUILD_DIR) hashtest.c rmd160.c rmd160.h
|
||||
$(CC) $(CFLAGS) -O3 -o $@ hashtest.c rmd160.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -167,7 +158,7 @@ hashtest.elf: hashtest.c rmd160.c rmd160.h libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
Bessel.elf: Bessel.c libsys.a
|
||||
$(BUILD_DIR)/Bessel.elf: $(BUILD_DIR) Bessel.c
|
||||
$(CC) $(CFLAGS) -o $@ Bessel.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -176,7 +167,7 @@ Bessel.elf: Bessel.c libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
whet.elf: whet.c libsys.a
|
||||
$(BUILD_DIR)/whet.elf: $(BUILD_DIR) whet.c
|
||||
$(CC) $(CFLAGS) -o $@ whet.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -185,7 +176,7 @@ whet.elf: whet.c libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
phrasen.elf: phrasen.c libsys.a
|
||||
$(BUILD_DIR)/phrasen.elf: $(BUILD_DIR) phrasen.c
|
||||
$(CC) $(CFLAGS) -o $@ phrasen.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -194,7 +185,7 @@ phrasen.elf: phrasen.c libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
dttl.elf: dttl.c random.c libsys.a
|
||||
$(BUILD_DIR)/dttl.elf: $(BUILD_DIR) dttl.c random.c
|
||||
$(CC) $(CFLAGS) -o $@ dttl.c random.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -203,7 +194,7 @@ dttl.elf: dttl.c random.c libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
richards_benchmark.elf: richards_benchmark.c libsys.a
|
||||
$(BUILD_DIR)/richards_benchmark.elf: $(BUILD_DIR) richards_benchmark.c
|
||||
$(CC) $(CFLAGS) -o $@ richards_benchmark.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -212,7 +203,7 @@ richards_benchmark.elf: richards_benchmark.c libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
test_exception.elf: test_exception.c libsys.a
|
||||
$(BUILD_DIR)/test_exception.elf: $(BUILD_DIR) test_exception.c
|
||||
$(CC) $(CFLAGS) -o $@ -O1 test_exception.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -221,7 +212,7 @@ test_exception.elf: test_exception.c libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
life.elf: life.c libsys.a
|
||||
$(BUILD_DIR)/life.elf: $(BUILD_DIR) life.c
|
||||
$(CC) $(CFLAGS) -o $@ -g life.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -230,7 +221,7 @@ life.elf: life.c libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
r3.elf: r3.c libsys.a
|
||||
$(BUILD_DIR)/r3.elf: $(BUILD_DIR) r3.c
|
||||
$(CC) $(CFLAGS) -O3 -o $@ -DJMIPS_VGA -O2 r3.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -239,7 +230,7 @@ r3.elf: r3.c libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
gunzip.elf: gunzip.c inflate.c crc32.c libsys.a
|
||||
$(BUILD_DIR)/gunzip.elf: $(BUILD_DIR) gunzip.c inflate.c crc32.c $(LSYS_BUILD_DIR)/libsys.a
|
||||
$(CC) $(CFLAGS) -o $@ -o $@ gunzip.c inflate.c crc32.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -248,7 +239,7 @@ gunzip.elf: gunzip.c inflate.c crc32.c libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
basic_math.elf: basicmath_small.c rad2deg.c cubic.c isqrt.c libsys.a
|
||||
$(BUILD_DIR)/basic_math.elf: $(BUILD_DIR) basicmath_small.c rad2deg.c cubic.c isqrt.c
|
||||
$(CC) $(CFLAGS) -o $@ -o $@ basicmath_small.c rad2deg.c cubic.c isqrt.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -273,7 +264,7 @@ JMAN_SRC= \
|
||||
jman/stack.c \
|
||||
jman/vars.c
|
||||
|
||||
jman_patches.elf: $(JMAN_SRC) jman/main_patches.c libsys.a
|
||||
$(BUILD_DIR)/jman_patches.elf: $(BUILD_DIR) $(JMAN_SRC) jman/main_patches.c
|
||||
$(CC) $(CFLAGS) -I../ -o $@ -o $@ jman/main_patches.c $(JMAN_SRC) $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -282,7 +273,7 @@ jman_patches.elf: $(JMAN_SRC) jman/main_patches.c libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
jman_patchmeshes.elf: $(JMAN_SRC) jman/main_patchmeshes.c jman/patches2.c libsys.a
|
||||
$(BUILD_DIR)/jman_patchmeshes.elf: $(BUILD_DIR) $(JMAN_SRC) jman/main_patchmeshes.c jman/patches2.c
|
||||
$(CC) $(CFLAGS) -I../ -o $@ -o $@ jman/main_patchmeshes.c jman/patches2.c $(JMAN_SRC) $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -291,7 +282,7 @@ jman_patchmeshes.elf: $(JMAN_SRC) jman/main_patchmeshes.c jman/patches2.c libsys
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
jman_polys.elf: $(JMAN_SRC) jman/main_polypin.c jman/polys.c libsys.a
|
||||
$(BUILD_DIR)/jman_polys.elf: $(BUILD_DIR) $(JMAN_SRC) jman/main_polypin.c jman/polys.c
|
||||
$(CC) $(CFLAGS) -I../ -o $@ -o $@ jman/main_polypin.c jman/polys.c $(JMAN_SRC) $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -300,7 +291,7 @@ jman_polys.elf: $(JMAN_SRC) jman/main_polypin.c jman/polys.c libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
serdump.elf: serdump.c libsys.a
|
||||
$(BUILD_DIR)/serdump.elf: $(BUILD_DIR) serdump.c
|
||||
$(CC) $(CFLAGS) -O3 -o $@ -O2 serdump.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -309,7 +300,7 @@ serdump.elf: serdump.c libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
pppi.elf: pppissue/test1.c pppissue/utils.c pppissue/pppd.h libsys.a
|
||||
$(BUILD_DIR)/pppi.elf: $(BUILD_DIR) pppissue/test1.c pppissue/utils.c pppissue/pppd.h
|
||||
$(CC) $(CFLAGS) -O2 -o $@ -O2 pppissue/test1.c pppissue/utils.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -318,7 +309,7 @@ pppi.elf: pppissue/test1.c pppissue/utils.c pppissue/pppd.h libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
lwl.elf: lwl.c libsys.a
|
||||
$(BUILD_DIR)/lwl.elf: $(BUILD_DIR) lwl.c
|
||||
$(CC) $(CFLAGS) -O2 -o $@ lwl.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -327,7 +318,7 @@ lwl.elf: lwl.c libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
ucb.elf: ucb.c libsys_sim.a
|
||||
$(BUILD_DIR)/ucb.elf: $(BUILD_DIR) ucb.c
|
||||
$(CC) $(CFLAGS) -O2 -o $@ ucb.c -lsys_sim >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -336,7 +327,7 @@ ucb.elf: ucb.c libsys_sim.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
test_timer.elf: test_timer.c libsys_sim.a
|
||||
$(BUILD_DIR)/test_timer.elf: $(BUILD_DIR) test_timer.c
|
||||
$(CC) $(CFLAGS) -O2 -o $@ test_timer.c -lsys_sim >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -345,7 +336,7 @@ test_timer.elf: test_timer.c libsys_sim.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
test_exception_sim.elf: test_exception_sim.c libsys_sim.a
|
||||
$(BUILD_DIR)/test_exception_sim.elf: $(BUILD_DIR) test_exception_sim.c
|
||||
$(CC) $(CFLAGS) -O2 -o $@ test_exception_sim.c -lsys_sim >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -354,7 +345,7 @@ test_exception_sim.elf: test_exception_sim.c libsys_sim.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
test_tlb_sim.elf: test_tlb_sim.c libsys_sim.a
|
||||
$(BUILD_DIR)/test_tlb_sim.elf: $(BUILD_DIR) test_tlb_sim.c
|
||||
$(CC) $(CFLAGS) -O2 -o $@ test_tlb_sim.c -lsys_sim >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -363,7 +354,7 @@ test_tlb_sim.elf: test_tlb_sim.c libsys_sim.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
test_dcache_sim.elf: test_dcache.c libsys_sim.a
|
||||
$(BUILD_DIR)/test_dcache_sim.elf: $(BUILD_DIR) test_dcache.c
|
||||
$(CC) $(CFLAGS) -O0 -o $@ test_dcache.c -lsys_sim >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -372,7 +363,7 @@ test_dcache_sim.elf: test_dcache.c libsys_sim.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
test_hpi.elf: hpi.c test_hpi.c cfiflash.c libsys.a
|
||||
$(BUILD_DIR)/test_hpi.elf: $(BUILD_DIR) hpi.c test_hpi.c cfiflash.c
|
||||
$(CC) $(CFLAGS) -o $@ -g hpi.c test_hpi.c cfiflash.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -381,7 +372,7 @@ test_hpi.elf: hpi.c test_hpi.c cfiflash.c libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
test_vga.elf: test_vga.c libsys.a
|
||||
$(BUILD_DIR)/test_vga.elf: $(BUILD_DIR) test_vga.c
|
||||
$(CC) $(CFLAGS) -o $@ test_vga.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -390,7 +381,7 @@ test_vga.elf: test_vga.c libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
barcode.elf: barcode.c libsys.a
|
||||
$(BUILD_DIR)/barcode.elf: $(BUILD_DIR) barcode.c
|
||||
$(CC) $(CFLAGS) -o $@ barcode.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -399,7 +390,7 @@ barcode.elf: barcode.c libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
lua.elf: lua_init.c libsys.a
|
||||
$(BUILD_DIR)/lua.elf: $(BUILD_DIR) lua_init.c
|
||||
$(CC) $(CFLAGS) -I./lua-5.1.4/etc -I./lua-5.1.4/src -o $@ lua_init.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -408,7 +399,7 @@ lua.elf: lua_init.c libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
mandelbrot.elf: mandelbrot.c libsys.a
|
||||
$(BUILD_DIR)/mandelbrot.elf: $(BUILD_DIR) mandelbrot.c
|
||||
$(CC) $(CFLAGS) -o $@ mandelbrot.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -417,7 +408,7 @@ mandelbrot.elf: mandelbrot.c libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
bogomips.elf: bogomips.c delay_mips.c libsys.a
|
||||
$(BUILD_DIR)/bogomips.elf: $(BUILD_DIR) bogomips.c delay_mips.c
|
||||
$(CC) $(CFLAGS) -DHZ=1000 -o $@ bogomips.c delay_mips.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -426,7 +417,7 @@ bogomips.elf: bogomips.c delay_mips.c libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
test_asm.elf: test_asm.S libsys.a
|
||||
$(BUILD_DIR)/test_asm.elf: $(BUILD_DIR) test_asm.S
|
||||
$(CC) $(CFLAGS) -DHZ=1000 -o $@ test_asm.S $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -435,7 +426,7 @@ test_asm.elf: test_asm.S libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
test_ac97.elf: test_ac97.c libsys.a
|
||||
$(BUILD_DIR)/test_ac97.elf: $(BUILD_DIR) test_ac97.c
|
||||
$(CC) $(CFLAGS) -o $@ test_ac97.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -444,7 +435,7 @@ test_ac97.elf: test_ac97.c libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
aes256_1.elf: aes256_1.c aes256.c aes256.h libsys.a
|
||||
$(BUILD_DIR)/aes256_1.elf: $(BUILD_DIR) aes256_1.c aes256.c aes256.h
|
||||
$(CC) $(CFLAGS) -O3 -o $@ aes256_1.c aes256.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -453,7 +444,7 @@ aes256_1.elf: aes256_1.c aes256.c aes256.h libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
test_gpio.elf: test_gpio.c marvell_88e1111.c mii-bitbang.c emac.c emac.h ethernet.c ethernet.h arp.c arp.h icmp.c icmp.h ipv4.c ipv4.h udp.c udp.h dhcp.c dhcp.h fifo.c fifo.h libsys.a
|
||||
$(BUILD_DIR)/test_gpio.elf: $(BUILD_DIR) test_gpio.c marvell_88e1111.c mii-bitbang.c emac.c emac.h ethernet.c ethernet.h arp.c arp.h icmp.c icmp.h ipv4.c ipv4.h udp.c udp.h dhcp.c dhcp.h fifo.c fifo.h
|
||||
$(CC) $(CFLAGS) -o $@ -O2 test_gpio.c marvell_88e1111.c mii-bitbang.c emac.c ethernet.c arp.c icmp.c ipv4.c udp.c dhcp.c fifo.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -462,7 +453,7 @@ test_gpio.elf: test_gpio.c marvell_88e1111.c mii-bitbang.c emac.c emac.h etherne
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
test_emac_sim.elf: test_emac_sim.c emac.c emac.h libsys.a
|
||||
$(BUILD_DIR)/test_emac_sim.elf: $(BUILD_DIR) test_emac_sim.c emac.c emac.h
|
||||
$(CC) $(CFLAGS) -o $@ -Os test_emac_sim.c emac.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -471,7 +462,7 @@ test_emac_sim.elf: test_emac_sim.c emac.c emac.h libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
mips_io.elf: mips_io.c libsys.a
|
||||
$(BUILD_DIR)/mips_io.elf: $(BUILD_DIR) mips_io.c
|
||||
$(CC) $(CFLAGS) -o $@ mips_io.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -480,7 +471,7 @@ mips_io.elf: mips_io.c libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
mips_instr.elf: mips_instr.c libsys.a
|
||||
$(BUILD_DIR)/mips_instr.elf: $(BUILD_DIR) mips_instr.c
|
||||
$(CC) $(CFLAGS) -o $@ mips_instr.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -489,7 +480,7 @@ mips_instr.elf: mips_instr.c libsys.a
|
||||
cat $@.srec | $(PACKHEX) > $@.pack
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
test_endianess.elf: test_endianess.c libsys.a
|
||||
$(BUILD_DIR)/test_endianess.elf: $(BUILD_DIR) test_endianess.c
|
||||
$(CC) $(CFLAGS) -O0 -o $@ test_endianess.c $(LIBS) >$@.map
|
||||
$(OBJDUMP) -d $@ > $@.dis
|
||||
$(OBJCOPY) $@ -O binary $@.bin
|
||||
@@ -499,4 +490,4 @@ test_endianess.elf: test_endianess.c libsys.a
|
||||
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
|
||||
|
||||
clean:
|
||||
rm -rf *.a *.o *.bin *.map *.dis *.srec *.pack *.elf $(PROG) > /dev/null
|
||||
rm -rf $(BUILD_DIR)/*.bin $(BUILD_DIR)/*.map $(BUILD_DIR)/*.dis $(BUILD_DIR)/*.srec $(BUILD_DIR)/*.pack $(BUILD_DIR)/*.elf $(BUILD_DIR)/*.hex $(PROG) > /dev/null
|
||||
|
||||
Reference in New Issue
Block a user