mirror of
https://github.com/upx/upx
synced 2025-09-28 19:06:07 +08:00
Small Makefile updates.
This commit is contained in:
parent
3635c00143
commit
8e9b5f14af
11
src/Makefile
11
src/Makefile
|
@ -55,13 +55,8 @@ INCLUDES += -I$(UPX_UCLDIR)/include
|
|||
LIBS += $(addprefix -L,$(dir $(wildcard $(UPX_UCLDIR)/libucl$(libext) $(UPX_UCLDIR)/src/.libs/libucl$(libext))))
|
||||
endif
|
||||
LIBS += -lucl -lz
|
||||
# you should set envvar UPX_LZMADIR to point to your unpacked LZMA SDK lzma443.tar.bz2
|
||||
# NOTE: only version 4.43 is currently sufficiently tested !
|
||||
ifneq ($(wildcard $(UPX_LZMADIR)/CPP/7zip/.),)
|
||||
UPX_LZMA_VERSION = 0x449
|
||||
else ifneq ($(wildcard $(UPX_LZMADIR)/C/7zip/.),)
|
||||
UPX_LZMA_VERSION = 0x443
|
||||
endif
|
||||
# you should set envvar UPX_LZMADIR to point to your unpacked LZMA SDK
|
||||
include $(top_srcdir)/src/stub/src/c/Makevars.lzma
|
||||
ifneq ($(UPX_LZMA_VERSION),)
|
||||
DEFS += -DWITH_LZMA=$(UPX_LZMA_VERSION)
|
||||
INCLUDES += -I$(UPX_LZMADIR)
|
||||
|
@ -92,9 +87,9 @@ endif
|
|||
ifeq ($(USE_GNUC),1)
|
||||
##compress_lzma$(objext) : CXXFLAGS += -O3 -fomit-frame-pointer
|
||||
compress_lzma$(objext) : CXXFLAGS += -Wno-cast-qual
|
||||
compress_lzma$(objext) : CXXFLAGS += -Wno-shadow
|
||||
ifeq ($(UPX_LZMA_VERSION),0x443)
|
||||
compress_lzma$(objext) : CXXFLAGS += -Wno-non-virtual-dtor
|
||||
compress_lzma$(objext) : CXXFLAGS += -Wno-shadow
|
||||
compress_lzma$(objext) : CXXFLAGS += -Wno-unused
|
||||
endif
|
||||
# needed for gcc-4.3:
|
||||
|
|
|
@ -12,7 +12,7 @@ include $(wildcard $(top_srcdir)/Makevars.global ./Makevars.local)
|
|||
vpath %.c $(top_srcdir)/src/stub/src/c
|
||||
|
||||
STUBS =
|
||||
include $(top_srcdir)/src/stub/src/c/Makedefs.lzma
|
||||
include $(top_srcdir)/src/stub/src/c/Makevars.lzma
|
||||
ifneq ($(UPX_LZMA_VERSION),)
|
||||
STUBS += lzma_d_cf.S lzma_d_cs.S
|
||||
endif
|
||||
|
|
|
@ -12,7 +12,7 @@ include $(wildcard $(top_srcdir)/Makevars.global ./Makevars.local)
|
|||
vpath %.c $(top_srcdir)/src/stub/src/c
|
||||
|
||||
STUBS =
|
||||
include $(top_srcdir)/src/stub/src/c/Makedefs.lzma
|
||||
include $(top_srcdir)/src/stub/src/c/Makevars.lzma
|
||||
ifneq ($(UPX_LZMA_VERSION),)
|
||||
STUBS += lzma_d_cf.S lzma_d_cs.S
|
||||
endif
|
||||
|
|
|
@ -12,7 +12,7 @@ include $(wildcard $(top_srcdir)/Makevars.global ./Makevars.local)
|
|||
vpath %.c $(top_srcdir)/src/stub/src/c
|
||||
|
||||
STUBS =
|
||||
include $(top_srcdir)/src/stub/src/c/Makedefs.lzma
|
||||
include $(top_srcdir)/src/stub/src/c/Makevars.lzma
|
||||
ifneq ($(UPX_LZMA_VERSION),)
|
||||
STUBS += lzma_d_cf.S lzma_d_cs.S
|
||||
endif
|
||||
|
|
|
@ -12,7 +12,7 @@ include $(wildcard $(top_srcdir)/Makevars.global ./Makevars.local)
|
|||
vpath %.c $(top_srcdir)/src/stub/src/c
|
||||
|
||||
STUBS =
|
||||
include $(top_srcdir)/src/stub/src/c/Makedefs.lzma
|
||||
include $(top_srcdir)/src/stub/src/c/Makevars.lzma
|
||||
ifneq ($(UPX_LZMA_VERSION),)
|
||||
ifneq ($(wildcard $(WATCOM)/binl/wcl),)
|
||||
STUBS += lzma_d_cf.S lzma_d_cs.S
|
||||
|
|
|
@ -12,7 +12,7 @@ include $(wildcard $(top_srcdir)/Makevars.global ./Makevars.local)
|
|||
vpath %.c $(top_srcdir)/src/stub/src/c
|
||||
|
||||
STUBS =
|
||||
include $(top_srcdir)/src/stub/src/c/Makedefs.lzma
|
||||
include $(top_srcdir)/src/stub/src/c/Makevars.lzma
|
||||
ifneq ($(UPX_LZMA_VERSION),)
|
||||
STUBS += lzma_d_cf.S lzma_d_cs.S
|
||||
endif
|
||||
|
|
|
@ -12,7 +12,7 @@ include $(wildcard $(top_srcdir)/Makevars.global ./Makevars.local)
|
|||
vpath %.c $(top_srcdir)/src/stub/src/c
|
||||
|
||||
STUBS =
|
||||
include $(top_srcdir)/src/stub/src/c/Makedefs.lzma
|
||||
include $(top_srcdir)/src/stub/src/c/Makevars.lzma
|
||||
ifneq ($(UPX_LZMA_VERSION),)
|
||||
STUBS += lzma_d_cf.S lzma_d_cs.S
|
||||
endif
|
||||
|
|
|
@ -12,7 +12,7 @@ include $(wildcard $(top_srcdir)/Makevars.global ./Makevars.local)
|
|||
vpath %.c $(top_srcdir)/src/stub/src/c
|
||||
|
||||
STUBS =
|
||||
include $(top_srcdir)/src/stub/src/c/Makedefs.lzma
|
||||
include $(top_srcdir)/src/stub/src/c/Makevars.lzma
|
||||
ifneq ($(UPX_LZMA_VERSION),)
|
||||
STUBS += lzma_d_cf.S lzma_d_cs.S
|
||||
endif
|
||||
|
|
|
@ -12,7 +12,7 @@ include $(wildcard $(top_srcdir)/Makevars.global ./Makevars.local)
|
|||
vpath %.c $(top_srcdir)/src/stub/src/c
|
||||
|
||||
STUBS =
|
||||
include $(top_srcdir)/src/stub/src/c/Makedefs.lzma
|
||||
include $(top_srcdir)/src/stub/src/c/Makevars.lzma
|
||||
ifneq ($(UPX_LZMA_VERSION),)
|
||||
STUBS += lzma_d_cf.S lzma_d_cs.S
|
||||
endif
|
||||
|
|
|
@ -12,7 +12,7 @@ include $(wildcard $(top_srcdir)/Makevars.global ./Makevars.local)
|
|||
vpath %.c $(top_srcdir)/src/stub/src/c
|
||||
|
||||
STUBS =
|
||||
include $(top_srcdir)/src/stub/src/c/Makedefs.lzma
|
||||
include $(top_srcdir)/src/stub/src/c/Makevars.lzma
|
||||
ifneq ($(UPX_LZMA_VERSION),)
|
||||
STUBS += lzma_d_cf.S lzma_d_cs.S
|
||||
endif
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
# you should set envvar UPX_LZMADIR to point to your unpacked LZMA SDK
|
||||
# you should set envvar UPX_LZMADIR to point to your unpacked LZMA SDK lzma443.tar.bz2
|
||||
# NOTE: only version 4.43 is currently sufficiently tested !
|
||||
|
||||
ifneq ($(wildcard $(UPX_LZMADIR)/CPP/7zip/.),)
|
||||
UPX_LZMA_VERSION = 0x449
|
||||
else ifneq ($(wildcard $(UPX_LZMADIR)/C/7zip/.),)
|
Loading…
Reference in New Issue
Block a user