summaryrefslogtreecommitdiff
path: root/Template
blob: fa574de57671c23240b27e5875e5d2aaed00d40b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
define TOOL_templ
  include $(1)/Makefile
  $(1) $(1)%: BUILD_DIR := $(1)
  $(1) $(1)%: CFLAGS += $$($(1)-eflags)
  $(1)_prehook:
	$(Q)echo "$(bold)$(WHAT) $(1):$(normal)"
  $(1): $(1)_prehook $$($(1)-lex) $$($(1)-yaac) $$(patsubst %.o,$(1)/%.o,$$($(1)-objs))
  $(1)_clean: $(1)_clean_custom
	$(Q)$$(call RM,$(1)/*.o $(1)/$(1) $(1)/*.gz)
  $(1)_do_install:
	$(Q)$$(call INSTX,$(1)/$(1),$$(DESTDIR)$$(SBINDIR))
	$(Q)$(GZIP) $(1).8 > $(1)/$(1).8.gz
	$(Q)$$(call INSTX,$(1)/$(1).8.gz,$$(DESTDIR)$$(MAN8DIR))
	$(Q)$$(foreach file,$$($(1)-confs),$$(call INST,$$(file),$$(DESTDIR)$$(ETCDIRE));)
  $(1)_install: $(1)_do_install $(1)_post_install
  $(1)_uninstall: $(1)_uninstall_custom
	$(Q)$$(call RM,$$(DESTDIR)$$(SBINDIR)/$(1))
	$(Q)$$(call RM,$$(DESTDIR)$$(MAN8DIR)/$(1).8.gz)
  $(1)/%.yy.o: $(1)/%.yy.c
	$$(CCQ) $$(CFLAGS) -o $$@ -c $$<
  $(1)/%.tab.o: $(1)/%.tab.c
	$$(CCQ) $$(CFLAGS) -o $$@ -c $$<
  $(1)/%.o: %.c
	$$(CHECK) $$(CFLAGS) $$(CHECKFLAGS) $$<
	$$(CCQ) $$(CFLAGS) -o $(1)/$$(shell basename $$@) -c $$<
endef
46'>ib_cm.h19359logplain -rw-r--r--ib_fmr_pool.h3439logplain -rw-r--r--ib_hdrs.h4989logplain -rw-r--r--ib_mad.h27924logplain -rw-r--r--ib_marshall.h2025logplain -rw-r--r--ib_pack.h9047logplain -rw-r--r--ib_pma.h5579logplain -rw-r--r--ib_sa.h16914logplain -rw-r--r--ib_smi.h5633logplain -rw-r--r--ib_umem.h3577logplain -rw-r--r--ib_umem_odp.h5300logplain -rw-r--r--ib_verbs.h100225logplain -rw-r--r--iw_cm.h8793logplain -rw-r--r--iw_portmap.h7688logplain -rw-r--r--mr_pool.h954logplain -rw-r--r--opa_port_info.h15063logplain -rw-r--r--opa_smi.h4417logplain