URL
https://opencores.org/ocsvn/or2k/or2k/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 20 |
Rev 28 |
|
|
APP=insnanalysis
|
APP=insnanalysis
|
|
|
CFLAGS ?= -O2
|
CFLAGS ?= -O2
|
|
|
all: $(APP)
|
all: $(APP)
|
|
|
SRC=insnanalysis.c or1k-32-insn.c insn-lists.c
|
SRC=insnanalysis.c or1k-32-insn.c insn-lists.c
|
HDRS=insnanalysis.h or1k-32-insn.h insn-lists.h
|
HDRS=insnanalysis.h or1k-32-insn.h insn-lists.h
|
|
|
|
|
insnanalysis: $(SRC) $(HDRS)
|
insnanalysis: $(SRC) $(HDRS)
|
gcc $(CFLAGS) $(SRC) -o $@
|
gcc $(CFLAGS) $(SRC) -o $@
|
|
|
|
|
test: test.bin $(APP)
|
test: test.bin $(APP)
|
./$(APP) $<
|
./$(APP) -f $<
|
|
./$(APP) -f $< -o /dev/null
|
|
|
test.bin: test.o
|
test.bin: test.o
|
or32-elf-objcopy -O binary $< $@
|
or32-elf-objcopy -O binary $< $@
|
|
|
test.o: test.S
|
test.o: test.S
|
or32-elf-as $< -o $@
|
or32-elf-as $< -o $@
|
|
|
clean:
|
clean:
|
rm -f $(APP) *.o *.bin
|
rm -f $(APP) *.o *.bin
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.