mirror of
https://github.com/ksherlock/wdc-utils.git
synced 2024-12-12 04:29:05 +00:00
clean up makefile a little bit.
This commit is contained in:
parent
f080c2c862
commit
ad187b4bf3
18
Makefile
18
Makefile
@ -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)
|
||||
|
||||
|
||||
.PHONY: variables
|
||||
variables :
|
||||
$(foreach v, $(.VARIABLES), $(info $(v) = $($(v))))
|
||||
@echo
|
||||
|
Loading…
Reference in New Issue
Block a user