summaryrefslogtreecommitdiffstats
path: root/src/emu/Makefile
blob: 86d4aba4d438be906447dc8a28866f0f5771eb7a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CC = gcc
CFLAGS = -std=c99 -D_GNU_SOURCE -Wall -Wextra -pedantic -ggdb3
LDFLAGS = -lreadline

all: risci riscas

risci: asm.c cpu.c mem.c opc.c syscall.c

riscas: asm.c opc.c

test: riscas test.S
	./riscas test.S test

check: risci test
	./risci -d test

clean:
	rm -f test
	rm -f riscas risci