mirror of
https://github.com/upx/upx.git
synced 2024-12-02 17:56:38 +00:00
48 lines
932 B
Makefile
48 lines
932 B
Makefile
#
|
|
# UPX toplevel Makefile - needs GNU make 3.80 or better
|
|
#
|
|
|
|
MAKEFLAGS += -rR
|
|
.SUFFIXES:
|
|
export SHELL = /bin/sh
|
|
|
|
srcdir = .
|
|
top_srcdir = .
|
|
-include $(top_srcdir)/Makevars.global ./Makevars.local
|
|
|
|
|
|
# info: src/stub needs GNU make 3.81 and special build tools
|
|
BUILD_STUB = 0
|
|
ifneq ($(wildcard $(HOME)/local/bin/bin-upx/.),)
|
|
BUILD_STUB = 1
|
|
endif
|
|
ifneq ($(wildcard $(HOME)/bin/bin-upx/.),)
|
|
BUILD_STUB = 1
|
|
endif
|
|
ifneq ($(findstring $(firstword $(MAKE_VERSION)),3.79 3.79.1 3.80),)
|
|
BUILD_STUB = 0
|
|
endif
|
|
|
|
|
|
default:
|
|
@echo "UPX info: please choose a target for 'make'"
|
|
|
|
all mostlyclean clean distclean maintainer-clean:
|
|
ifeq ($(BUILD_STUB),1)
|
|
$(MAKE) -C src/stub $@
|
|
endif
|
|
$(MAKE) -C src $@
|
|
$(MAKE) -C doc $@
|
|
|
|
|
|
ifneq ($(wildcard .hg/data/.),)
|
|
# automatically generate ChangeLog from local Mercurial repo
|
|
ChangeLog:
|
|
hg log --style=changelog > $@
|
|
.PHONY: ChangeLog
|
|
endif
|
|
|
|
|
|
.PHONY: default all mostlyclean clean distclean maintainer-clean
|
|
|