view Makefile.unix @ 709:144bdfca82d1 default tip

Build system improvement.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 25 Feb 2022 15:26:06 +0200
parents f1df1cf69a38
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