-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
38 lines (25 loc) · 785 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
LINK.o = $(LINK.cc)
CXXFLAGS = -std=c++14 -g -Wall -Wno-sign-compare
CCFLAGS = -g
CPPFLAGS += -I cxx/include
VPATH = cxx/src
.PHONY: all
all: omm_disassembler hexterm
.PHONY: clean
clean:
$(RM) hexterm hexterm.omf hexterm.o omm_disassembler o/*
o:
mkdir o
omm_disassembler: o/omm_disassembler.o o/disassembler.o o/mapped_file.o
$(LINK.o) $^ $(LDLIBS) -o $@
o/omm_disassembler.o: omm_disassembler.cpp disassembler.h | o
o/disassembler.o: disassembler.cpp disassembler.h | o
o/mapped_file.o: cxx/src/mapped_file.cpp | o
o/%.o : %.cpp
$(CXX) -c $(CPPFLAGS) $(CXXFLAGS) -o $@ $<
% : %.omf
mpw makebiniigs -org \$$0ff0 -t \$$2b -at \$$8006 -p -s -o $@ $^
%.omf : %.o
mpw linkiigs -p -l -x -o $@ $^
%.o : %.aii
mpw asmiigs -p -l -i "{MPW}Interfaces:ModemWorks" -o $@ $^