summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: d72b91054a15153580ac89f0649ab7c8b856e046 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
ARCH=hexagon-
CC=${ARCH}gcc
LD=${ARCH}ld
OBJCOPY=${ARCH}objcopy

ARCHV?=2
GUEST_ENTRY?=0x0

all: minivm 

CFLAGS=-mv${ARCHV} -DGUEST_ENTRY=${GUEST_ENTRY} -mv${ARCHV}
ASFLAGS=${CFLAGS}

OBJS=minivm.o

minivm: ${OBJS}
	${LD} -o $@ -T hexagon.lds ${OBJS}

minivm.bin: minivm
	${OBJCOPY} -O binary $< $@

clean:
	rm -f *.o minivm minivm.bin ${OBJS}