mirror of
https://github.com/upx/upx
synced 2025-09-28 19:06:07 +08:00
Small Makefile update.
This commit is contained in:
parent
6f79cbb2a6
commit
c27b7e52e1
7
Makefile
7
Makefile
|
@ -17,12 +17,12 @@ top_srcdir = .
|
|||
include $(wildcard $(top_srcdir)/Makevars.global ./Makevars.local)
|
||||
|
||||
|
||||
# info: src/stub needs special build tools
|
||||
# info: src/stub needs special build tools from https://github.com/upx/upx-stubtools
|
||||
BUILD_STUB = 0
|
||||
ifneq ($(wildcard $(HOME)/local/bin/bin-upx/.),)
|
||||
ifneq ($(wildcard $(HOME)/local/bin/bin-upx/upx-stubtools-check-version),)
|
||||
BUILD_STUB = 1
|
||||
endif
|
||||
ifneq ($(wildcard $(HOME)/bin/bin-upx/.),)
|
||||
ifneq ($(wildcard $(HOME)/bin/bin-upx/upx-stubtools-check-version),)
|
||||
BUILD_STUB = 1
|
||||
endif
|
||||
|
||||
|
@ -40,3 +40,4 @@ endif
|
|||
|
||||
.PHONY: default all mostlyclean clean distclean maintainer-clean
|
||||
|
||||
# vim:set ts=8 sw=8 noet:
|
||||
|
|
|
@ -131,3 +131,5 @@ CLANG_FORMAT_FILES += ui.cpp ui.h util.h
|
|||
clang-format:
|
||||
$(top_srcdir)/src/stub/scripts/upx-clang-format -i $(addprefix $(top_srcdir)/src/,$(CLANG_FORMAT_FILES))
|
||||
.PHONY: clang-format
|
||||
|
||||
# vim:set ts=8 sw=8 noet:
|
||||
|
|
|
@ -35,10 +35,10 @@ endif
|
|||
include $(wildcard $(top_srcdir)/Makevars.global ./Makevars.local)
|
||||
|
||||
# update $PATH for our special stub build tools
|
||||
ifneq ($(wildcard $(HOME)/local/bin/bin-upx/.),)
|
||||
ifneq ($(wildcard $(HOME)/local/bin/bin-upx/upx-stubtools-check-version),)
|
||||
export PATH := $(HOME)/local/bin/bin-upx:$(PATH)
|
||||
endif
|
||||
ifneq ($(wildcard $(HOME)/bin/bin-upx/.),)
|
||||
ifneq ($(wildcard $(HOME)/bin/bin-upx/upx-stubtools-check-version),)
|
||||
export PATH := $(HOME)/bin/bin-upx:$(PATH)
|
||||
endif
|
||||
|
||||
|
@ -1317,9 +1317,7 @@ powerpc64le-darwin.macho-entry.h : $(srcdir)/src/$$T.S
|
|||
$(call tc,bin2h) tmp/$T.bin $@
|
||||
|
||||
powerpc64le-darwin.macho-fold.h : tmp/$$T.o tmp/powerpc64le-darwin.macho-main.o
|
||||
# FIXME: undefined reference to `_savegpr0_28' etc.
|
||||
$(call tc,ld) --no-warn-mismatch --strip-all --oformat binary -Map tmp/$T.map $(filter %.o,$^) -o tmp/$T.bin
|
||||
# echo "FIXME" > tmp/$T.bin
|
||||
chmod a-x tmp/$T.bin
|
||||
$(call tc,bin2h) tmp/$T.bin $@
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user