OpenCores
URL https://opencores.org/ocsvn/or2k/or2k/trunk

Subversion Repositories or2k

[/] [or2k/] [trunk/] [analysis-bin/] [insnanalysis/] [Makefile] - Blame information for rev 28

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 16 julius
 
2
APP=insnanalysis
3
 
4 19 julius
CFLAGS ?= -O2
5
 
6 16 julius
all: $(APP)
7
 
8
SRC=insnanalysis.c or1k-32-insn.c  insn-lists.c
9
HDRS=insnanalysis.h or1k-32-insn.h insn-lists.h
10
 
11
 
12
insnanalysis:  $(SRC) $(HDRS)
13 19 julius
        gcc $(CFLAGS) $(SRC) -o $@
14 16 julius
 
15
 
16
test: test.bin $(APP)
17 28 julius
        ./$(APP) -f $<
18
        ./$(APP) -f $< -o /dev/null
19 16 julius
 
20
test.bin: test.o
21
        or32-elf-objcopy -O binary $< $@
22
 
23
test.o: test.S
24
        or32-elf-as $< -o $@
25
 
26
clean:
27 20 julius
        rm -f $(APP) *.o *.bin

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.