upx/Makefile

49 lines
973 B
Makefile
Raw Normal View History

2006-08-29 21:08:26 +00:00
#
2007-03-09 06:59:50 +00:00
# UPX toplevel Makefile - needs GNU make 3.81 or better
2006-08-29 21:08:26 +00:00
#
2000-05-19 16:04:55 +00:00
MAKEFLAGS += -rR
.SUFFIXES:
export SHELL = /bin/sh
2007-03-09 06:59:50 +00:00
ifneq ($(findstring $(firstword $(MAKE_VERSION)),3.77 3.78 3.78.1 3.79 3.79.1 3.80),)
$(error GNU make 3.81 or better is required)
endif
srcdir = .
top_srcdir = .
2007-03-09 06:59:50 +00:00
include $(wildcard $(top_srcdir)/Makevars.global ./Makevars.local)
2007-03-09 06:59:50 +00:00
# info: src/stub needs special build tools
2006-06-17 16:54:11 +00:00
BUILD_STUB = 0
ifneq ($(wildcard $(HOME)/local/bin/bin-upx/.),)
BUILD_STUB = 1
endif
ifneq ($(wildcard $(HOME)/bin/bin-upx/.),)
BUILD_STUB = 1
endif
default:
@echo "UPX info: please choose a target for 'make'"
all mostlyclean clean distclean maintainer-clean:
2006-06-17 16:54:11 +00:00
ifeq ($(BUILD_STUB),1)
$(MAKE) -C src/stub $@
endif
2000-05-19 16:04:55 +00:00
$(MAKE) -C src $@
$(MAKE) -C doc $@
2007-01-31 04:53:38 +00:00
2006-06-17 16:54:11 +00:00
ifneq ($(wildcard .hg/data/.),)
2007-01-31 04:53:38 +00:00
# automatically generate ChangeLog from local Mercurial repo
ChangeLog:
hg log --style=changelog > $@
2007-01-31 04:53:38 +00:00
.PHONY: ChangeLog
endif
.PHONY: default all mostlyclean clean distclean maintainer-clean
2000-05-19 16:04:55 +00:00