mirror of
https://github.com/ksherlock/wdc-utils.git
synced 2024-06-09 05:29:30 +00:00
mingw32 makefile
This commit is contained in:
parent
97787b30e4
commit
b9092401f6
11
Makefile
11
Makefile
|
@ -5,8 +5,15 @@ CCFLAGS = -g
|
||||||
DUMP_OBJS = dumpobj.o disassembler.o zrdz_disassembler.o
|
DUMP_OBJS = dumpobj.o disassembler.o zrdz_disassembler.o
|
||||||
LINK_OBJS = link.o expression.o omf.o set_file_type.o finder_info_helper.o
|
LINK_OBJS = link.o expression.o omf.o set_file_type.o finder_info_helper.o
|
||||||
|
|
||||||
#UNAME_S := $(shell uname -s)
|
# static link if using mingw32 or mingw64 to make redistribution easier.
|
||||||
#ifeq ($(UNAME_S),MINGW64_NT-10.0)
|
# also add mingw directory.
|
||||||
|
ifeq ($(MSYSTEM),MINGW32)
|
||||||
|
DUMP_OBJS += mingw/err.o
|
||||||
|
LINK_OBJS += mingw/err.o
|
||||||
|
CPPFLAGS += -I mingw/
|
||||||
|
LDLIBS += -static
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(MSYSTEM),MINGW64)
|
ifeq ($(MSYSTEM),MINGW64)
|
||||||
DUMP_OBJS += mingw/err.o
|
DUMP_OBJS += mingw/err.o
|
||||||
LINK_OBJS += mingw/err.o
|
LINK_OBJS += mingw/err.o
|
||||||
|
|
Loading…
Reference in New Issue
Block a user