summaryrefslogtreecommitdiff
path: root/Makefile
blob: 843cccafa4cdaa9e9a8735cdd0e05437043308f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
ASM_OBJECTS = lex.o parse.o output.o assembler.o util.o
DISASM_OBJECTS = disassembler.o util.o input_bin.o output_asm.o

all: assembler disassembler

assembler: $(ASM_OBJECTS)

disassembler: $(DISASM_OBJECTS)

lex.o: lex.h

parse.o: lex.h parse.h instruction.h util.h

output.o: parse.h

util.o: lex.h instruction.h

.PHONY: clean test
clean:
	- rm -f assembler disasm $(ASM_OBJECTS)

test: all
	make -C test test