From 32f507ce5f66dd9c89a45854688f46bde33c5e3d Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 10 Nov 2010 09:20:50 +0100 Subject: Initial import of nios2sim (http://nios2sim.googlecode.com/svn/trunk/ r16) --- Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a2f4ad9 --- /dev/null +++ b/Makefile @@ -0,0 +1,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 \ No newline at end of file -- cgit v1.2.3-54-g00ecf