summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2010-11-10 09:20:50 +0100
committerTobias Klauser <tklauser@distanz.ch>2010-11-10 09:20:50 +0100
commit32f507ce5f66dd9c89a45854688f46bde33c5e3d (patch)
tree9626fc49bcf9c3f8e7fbf228395efe72688989bf /Makefile
Initial import of nios2sim (http://nios2sim.googlecode.com/svn/trunk/ r16)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 25 insertions, 0 deletions
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