summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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