Mercurial > hg > nnchat
comparison 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 |
comparison
equal
deleted
inserted
replaced
670:06199003043a | 671:dd3083a3383d |
---|---|
18 OBJPATH ?= obj/unix/ | 18 OBJPATH ?= obj/unix/ |
19 EXEEXT ?= | 19 EXEEXT ?= |
20 | 20 |
21 ENDIANCHK_BIN = $(BINPATH)endianchk$(EXEEXT) | 21 ENDIANCHK_BIN = $(BINPATH)endianchk$(EXEEXT) |
22 NOINST_TARGETS += $(ENDIANCHK_BIN) config.h | 22 NOINST_TARGETS += $(ENDIANCHK_BIN) config.h |
23 | 23 THLIBS_DEP = config.h |
24 | 24 |
25 include Makefile.gen | 25 include Makefile.gen |
26 | |
27 | |
28 ## | |
29 ## Generate endian check and config.h | |
30 ## | |
31 $(ENDIANCHK_BIN): endianchk.c | |
32 $(CC) $(CFLAGS) -o $@ $+ | |
33 | |
34 config.h: $(ENDIANCHK_BIN) | |
35 $(ENDIANCHK_BIN) > $@ | |
36 | 26 |
37 | 27 |
38 ## | 28 ## |
39 ## Install targets | 29 ## Install targets |
40 ## | 30 ## |