2016-12-26 16:03:06 +00:00
|
|
|
LINK.o = $(LINK.cc)
|
|
|
|
CXXFLAGS = -std=c++11 -g
|
|
|
|
CCFLAGS = -g
|
|
|
|
CPPFLAGS = -I .
|
|
|
|
|
|
|
|
UNAME_S := $(shell uname -s)
|
|
|
|
OBJS = dumpobj.o disassembler.o
|
|
|
|
|
|
|
|
#ifeq ($(UNAME_S),MINGW64_NT-10.0)
|
|
|
|
ifeq ($(MSYSTEM),MINGW64)
|
|
|
|
OBJS += err.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: variables
|
|
|
|
variables :
|
|
|
|
$(foreach v, $(.VARIABLES), $(info $(v) = $($(v))))
|
|
|
|
@echo
|
|
|
|
|
|
|
|
dumpobj : $(OBJS)
|
2016-12-24 22:09:12 +00:00
|
|
|
|
2016-12-25 05:04:17 +00:00
|
|
|
|
|
|
|
disassembler.o : disassembler.cpp disassembler.h
|
|
|
|
dumpobj.o : dumpobj.cpp disassembler.h
|
2016-12-26 16:03:06 +00:00
|
|
|
err.o : err.c 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:
|
|
|
|
$(RM) dumpobj $(OBJS)
|