fixed instruction length issue
[dcpu16] / Makefile
index f3324efabc61a143f42e044148b85957ad7dd30b..1a931a1c8f709724d37f398aabfaea17c30c6534 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,17 @@
 #!make
 #
-PROGRAMS = dcpu16
+PROGRAMS = as-dcpu16 vm-dcpu16
 
 CFLAGS = -g -Wall -Wextra -pedantic -std=c99
-LDFLAGS = 
+LDFLAGS = -lreadline
+
+HEADERS = dcpu16.h
 
 all:   $(PROGRAMS)
 
+%.o:   %.c $(HEADERS)
+
+vm-dcpu16: vm-dcpu16.o dcpu16.o
 
 as-dcpu16: as-dcpu16.o