Mercurial > hg > nnchat
view Makefile.unix @ 671:dd3083a3383d
Use the makefile.inc helper from th-libs for generic targets.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 09 Mar 2016 15:09:59 +0200 |
parents | 23d16d9cdf96 |
children | cfbc5ddf74e5 |
line wrap: on
line source
## ## Common UNIX style Makefile stuff ## PREFIX ?= /usr/local CC ?= cc AR ?= ar RANLIB ?= ranlib INSTALL ?= install DOC ?= README CFLAGS += -DHAVE_CONFIG_H ## ## Miscellaneous ## BINPATH ?= ./ OBJPATH ?= obj/unix/ EXEEXT ?= ENDIANCHK_BIN = $(BINPATH)endianchk$(EXEEXT) 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