comparison Makefile.inc @ 599:ee165ef28b6f

Improve few Makefile comments.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 14 Jan 2020 02:57:54 +0200
parents a6196e19465b
children 492633200ddd
comparison
equal deleted inserted replaced
598:a6196e19465b 599:ee165ef28b6f
1 ### 1 ###
2 ### Paths and directories 2 ### Tools, paths and directories
3 ### 3 ###
4 ifneq ($(BINTOOL_PREFIX),) 4 ifneq ($(BINTOOL_PREFIX),)
5 CC = $(BINTOOL_PREFIX)gcc 5 CC = $(BINTOOL_PREFIX)gcc
6 CXX = $(BINTOOL_PREFIX)g++ 6 CXX = $(BINTOOL_PREFIX)g++
7 AR = $(BINTOOL_PREFIX)ar 7 AR = $(BINTOOL_PREFIX)ar
17 MKDIR ?= mkdir 17 MKDIR ?= mkdir
18 MKDIR_P ?= $(MKDIR) -p 18 MKDIR_P ?= $(MKDIR) -p
19 19
20 20
21 ### 21 ###
22 ### Targets 22 ### Main th-libs targets
23 ### 23 ###
24 THLIBS_A = $(OBJPATH)thlibs.a 24 THLIBS_A = $(OBJPATH)thlibs.a
25 THLIBS_DEP += $(THLIBS)th_types.h $(THLIBS)th_util.h 25 THLIBS_DEP += $(THLIBS)th_types.h $(THLIBS)th_util.h
26 26
27 27
61 $(call DO_CMD,AR,$@ $(filter %.o,$+),$(AR) cru $@ $(filter %.o,$+)) ; \ 61 $(call DO_CMD,AR,$@ $(filter %.o,$+),$(AR) cru $@ $(filter %.o,$+)) ; \
62 $(call DO_CMD,RANLIB,$@,$(RANLIB) $@) 62 $(call DO_CMD,RANLIB,$@,$(RANLIB) $@)
63 63
64 64
65 ### 65 ###
66 ### Target rules 66 ### Generic target rules
67 ### 67 ###
68 all: $(NOBUILD_TARGETS) $(NOINST_TARGETS) $(TARGETS) 68 all: $(NOBUILD_TARGETS) $(NOINST_TARGETS) $(TARGETS)
69 69
70 70
71 $(THLIBS)th_string.c: $(addprefix $(THLIBS), th_printf.c th_printf1.c th_strmatch.c th_string.h) 71 $(THLIBS)th_string.c: $(addprefix $(THLIBS), th_printf.c th_printf1.c th_strmatch.c th_string.h)