# # 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