summaryrefslogblamecommitdiffstats
path: root/src/emu/Makefile
blob: 86d4aba4d438be906447dc8a28866f0f5771eb7a (plain) (tree)


















                                                              
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