2016-12-26 16:03:06 +00:00
|
|
|
LINK.o = $(LINK.cc)
|
2017-01-05 19:14:22 +00:00
|
|
|
CXXFLAGS = -std=c++11 -g -Wall
|
2016-12-26 16:03:06 +00:00
|
|
|
CCFLAGS = -g
|
|
|
|
|
2017-01-05 04:50:35 +00:00
|
|
|
OBJS = dumpobj.o disassembler.o zrdz_disassembler.o
|
2016-12-26 16:03:06 +00:00
|
|
|
|
2016-12-26 16:14:38 +00:00
|
|
|
#UNAME_S := $(shell uname -s)
|
2016-12-26 16:03:06 +00:00
|
|
|
#ifeq ($(UNAME_S),MINGW64_NT-10.0)
|
|
|
|
ifeq ($(MSYSTEM),MINGW64)
|
2016-12-26 16:14:38 +00:00
|
|
|
OBJS += mingw/err.o
|
|
|
|
CPPFLAGS += -I mingw/
|
2016-12-26 16:03:06 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
2017-01-05 19:14:22 +00:00
|
|
|
wdcdumpobj : $(OBJS)
|
2017-01-05 20:41:07 +00:00
|
|
|
$(LINK.o) $^ $(LDLIBS) -o $@
|
2016-12-25 05:04:17 +00:00
|
|
|
|
|
|
|
disassembler.o : disassembler.cpp disassembler.h
|
2017-01-05 04:50:35 +00:00
|
|
|
zrdz_disassembler.o : zrdz_disassembler.cpp zrdz_disassembler.h disassembler.h
|
|
|
|
dumpobj.o : dumpobj.cpp zrdz_disassembler.h disassembler.h
|
2016-12-26 16:14:38 +00:00
|
|
|
mingw/err.o : mingw/err.c mingw/err.h
|
2016-12-24 22:09:12 +00:00
|
|
|
|
2016-12-26 16:03:06 +00:00
|
|
|
.PHONY: clean
|
2016-12-24 22:09:12 +00:00
|
|
|
clean:
|
2017-01-05 20:41:07 +00:00
|
|
|
$(RM) wdcdumpobj $(OBJS)
|
2016-12-26 16:14:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
.PHONY: variables
|
|
|
|
variables :
|
|
|
|
$(foreach v, $(.VARIABLES), $(info $(v) = $($(v))))
|
|
|
|
@echo
|