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
20
Makefile
20
Makefile
@ -1,28 +1,30 @@
|
|||||||
LINK.o = $(LINK.cc)
|
LINK.o = $(LINK.cc)
|
||||||
CXXFLAGS = -std=c++11 -g
|
CXXFLAGS = -std=c++11 -g
|
||||||
CCFLAGS = -g
|
CCFLAGS = -g
|
||||||
CPPFLAGS = -I .
|
|
||||||
|
|
||||||
UNAME_S := $(shell uname -s)
|
|
||||||
OBJS = dumpobj.o disassembler.o
|
OBJS = dumpobj.o disassembler.o
|
||||||
|
|
||||||
|
#UNAME_S := $(shell uname -s)
|
||||||
#ifeq ($(UNAME_S),MINGW64_NT-10.0)
|
#ifeq ($(UNAME_S),MINGW64_NT-10.0)
|
||||||
ifeq ($(MSYSTEM),MINGW64)
|
ifeq ($(MSYSTEM),MINGW64)
|
||||||
OBJS += err.o
|
OBJS += mingw/err.o
|
||||||
|
CPPFLAGS += -I mingw/
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: variables
|
|
||||||
variables :
|
|
||||||
$(foreach v, $(.VARIABLES), $(info $(v) = $($(v))))
|
|
||||||
@echo
|
|
||||||
|
|
||||||
dumpobj : $(OBJS)
|
dumpobj : $(OBJS)
|
||||||
|
|
||||||
|
|
||||||
disassembler.o : disassembler.cpp disassembler.h
|
disassembler.o : disassembler.cpp disassembler.h
|
||||||
dumpobj.o : dumpobj.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
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
$(RM) dumpobj $(OBJS)
|
$(RM) dumpobj $(OBJS)
|
||||||
|
|
||||||
|
|
||||||
|
.PHONY: variables
|
||||||
|
variables :
|
||||||
|
$(foreach v, $(.VARIABLES), $(info $(v) = $($(v))))
|
||||||
|
@echo
|
||||||
|
Loading…
Reference in New Issue
Block a user