summaryrefslogtreecommitdiff
path: root/Makefile
blob: a2f4ad923fe56492e1ecb570b08aaaadd2a07d46 (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
#
# Make file for compiling simulator for NIOSII
#

TARGET=nios-sim

SRC=main.c load_image.c simulator.c niosii.c i_type_handler.c j_type_handler.c \
	r_type_handler.c custom_instr.c io_device.c jtag_uart.c timer.c uart_core.c \
	nor_flash.c

CFLAGS= -g -Wall

all: 
	gcc -o ${TARGET} ${CFLAGS} ${SRC}

.phony:
	clean distclean

clean:
	@rm -rf ${TARGET} *.o

distclean: clean
	@rm -rf *~
	@rm -rf #*
	@rm -rf tags