noinst_LTLIBRARIES=libproc.la INCLUDES="-DVERSION=$(LIBPROC_VERSION) -DSUBVERSION=$(LIBPROC_SUBVERSION) -DMINORVERSION=$(LIBPROC_MINORVERSION)" BUILT_SOURCES = signames.h HDRSFILES=version.h signals.h signames.h psdata.h sysinfo.h whattime.h tree.h ps.h readproc.h devname.h libproc_la_SOURCES=signals.c version.c\ alloc.c compare.c devname.c ksym.c output.c\ pwcache.c readproc.c status.c sysinfo.c\ whattime.c\ $(HDRSFILES) #libprocincludedir=$(includedir)/proc #libprocinclude_HEADERS=$(HDRSFILES) libproc_la_CFLAGS=@CFLAGS@ -D_GNU_SOURCE libproc_la_LDFLAGS=-static -version-info @LIBPROC_LIBVERSION@ signals.o: signame.h signames.h: /usr/include/asm/signal.h tr -s '\t ' ' ' < /usr/include/asm/signal.h | sort -n +2 | sed \ 's:#define SIG\([A-Z]\+[0-9]*\) \([0-9]\+\) *\(\|/\*.*\)$$:{\ \2,"\1" },:p;d' > signames.h