cleanup, simplified event callbacks, step now consumes branch-skipped instructions
[dcpu16] / Makefile
1 #!make
2 #
3 PROGRAMS = as-dcpu16 vm-dcpu16
4 SOURCES = dcpu16.c as-dcpu16.c vm-dcpu16.c
5
6 CFLAGS = -g -Wall -Wextra -pedantic -std=c99
7 LDFLAGS = -lreadline
8
9
10 all: $(PROGRAMS)
11
12 depend: .depend
13
14 .depend: $(SOURCES)
15 @rm -f ./.depend
16 $(CC) $(CFLAGS) -MM $^ >> ./.depend
17
18 include .depend
19
20
21 vm-dcpu16: vm-dcpu16.o dcpu16.o
22
23 as-dcpu16: as-dcpu16.o
24
25 dcpu16: dcpu16.o
26
27 clean:
28 @rm -rf $(PROGRAMS) *.o *.dSYM .depend
29
30 check: $(PROGRAMS)