wdc-utils/Makefile

31 lines
518 B
Makefile
Raw Normal View History

2016-12-26 16:03:06 +00:00
LINK.o = $(LINK.cc)
CXXFLAGS = -std=c++11 -g
CCFLAGS = -g
OBJS = dumpobj.o disassembler.o
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
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: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:
2016-12-26 16:14:38 +00:00
$(RM) dumpobj $(OBJS)
.PHONY: variables
variables :
$(foreach v, $(.VARIABLES), $(info $(v) = $($(v))))
@echo