view Makefile.unix @ 695:f1df1cf69a38

Rename EXEEXT to BINEXT in the build system, as per changes in th-libs build system.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 06 Jan 2020 12:40:57 +0200
parents cfbc5ddf74e5
children
line wrap: on
line source

##
## Common UNIX style Makefile stuff
##
PREFIX ?= /usr/local
DOC ?= README

CFLAGS += -DHAVE_CONFIG_H


##
## Miscellaneous
##
BINPATH ?= ./
OBJPATH ?= obj/unix/
BINEXT ?=

ENDIANCHK_BIN = $(BINPATH)endianchk$(BINEXT)
NOINST_TARGETS += $(ENDIANCHK_BIN) config.h
THLIBS_DEP = config.h

include Makefile.gen


##
## Install targets
##
install: all
	@for fn in $(TARGETS); do echo " INSTALL $$fn $(PREFIX)/bin/"; $(INSTALL) -m 755 "$$fn" $(PREFIX)/bin/; done