clean up makefile a little bit.

This commit is contained in:
Kelvin Sherlock 2016-12-26 11:14:38 -05:00
parent f080c2c862
commit ad187b4bf3
4 changed files with 11 additions and 9 deletions

View File

@ -1,28 +1,30 @@
LINK.o = $(LINK.cc)
CXXFLAGS = -std=c++11 -g
CCFLAGS = -g
CPPFLAGS = -I .
UNAME_S := $(shell uname -s)
OBJS = dumpobj.o disassembler.o
#UNAME_S := $(shell uname -s)
#ifeq ($(UNAME_S),MINGW64_NT-10.0)
ifeq ($(MSYSTEM),MINGW64)
OBJS += err.o
OBJS += mingw/err.o
CPPFLAGS += -I mingw/
endif
.PHONY: variables
variables :
$(foreach v, $(.VARIABLES), $(info $(v) = $($(v))))
@echo
dumpobj : $(OBJS)
disassembler.o : disassembler.cpp disassembler.h
dumpobj.o : dumpobj.cpp disassembler.h
err.o : err.c err.h
mingw/err.o : mingw/err.c mingw/err.h
.PHONY: clean
clean:
$(RM) dumpobj $(OBJS)
$(RM) dumpobj $(OBJS)
.PHONY: variables
variables :
$(foreach v, $(.VARIABLES), $(info $(v) = $($(v))))
@echo

View File

View File