File: mymap.mk

package info (click to toggle)
testu01 1.2.3%2Bds-2
  • links: PTS, VCS
  • area: non-free
  • in suites: stretch
  • size: 17,740 kB
  • ctags: 4,799
  • sloc: ansic: 52,384; makefile: 241; sh: 53
file content (12 lines) | stat: -rw-r--r-- 412 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
CPROTO = cproto

VPATH ?=
VPATH += ${top_builddir}/include

%.map :
	_MAPNAME=$$(echo $(patsubst %.map,%,$@) | tr '[a-z]' '[A-Z]') ; \
	printf "LIB%s_%d.%d.%d {\nglobal:\n" $$_MAPNAME $(subst :, ,$(LIBTESTU01_LT_VERSION)) > $@ ;
	$(CPROTO) -I${top_builddir}/include -X 1 -f 0 $^ | \
			sed '/^\/\*/d;s/()//g;s/\[.*\]//g;s/\*//g' | rev | cut -d ' ' -f1 | rev | sort -u \
		>> $@
	printf "\nlocal: *;\n};\n" >> $@