diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-06-01 16:28:38 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-06-01 16:28:38 -0400 |
commit | b3390c34179818fe1f5f9848141a3f891aeb45e7 (patch) | |
tree | 5f06ea28d3619406852c168d34cc6cef894bd63c /src/libbasic/Makefile | |
parent | fa75ccbd2d61321d49f1fe7e3f8a215062ad7a83 (diff) |
stuff
Diffstat (limited to 'src/libbasic/Makefile')
-rw-r--r-- | src/libbasic/Makefile | 45 |
1 files changed, 34 insertions, 11 deletions
diff --git a/src/libbasic/Makefile b/src/libbasic/Makefile index 264b4298bc..83ed2355ad 100644 --- a/src/libbasic/Makefile +++ b/src/libbasic/Makefile @@ -219,19 +219,27 @@ libbasic_la_SOURCES = \ src/basic/formats-util.h \ src/basic/nss-util.h -std.out_files = libbasic.la -CFLAGS += -pthread -CPPFLAGS += $(libsystemd.CPPFLAGS) $(libselinux.CPPFLAGS) $(libcap.CPPFLAGS) -$(outdir)/libbasic.la: \ - $(patsubst src/basic/%.c,$(outdir)/%.lo,$(filter %.c,$(libbasic_la_SOURCES))) \ - $(libselinux.DEPENDS) $(libcap.DEPENDS) -lrt -lm +nodist_libbasic_la_SOURCES = \ + src/basic/errno-from-name.h \ + src/basic/errno-to-name.h \ + src/basic/af-from-name.h \ + src/basic/af-to-name.h \ + src/basic/arphrd-from-name.h \ + src/basic/arphrd-to-name.h \ + src/basic/cap-from-name.h \ + src/basic/cap-to-name.h -std.gen_files += *-to-name.h *-from-name.h *-from-name.gperf *-list.txt +libbasic_la_CFLAGS = \ + $(AM_CFLAGS) \ + $(SELINUX_CFLAGS) \ + $(CAP_CFLAGS) \ + -pthread -$(outdir)/af-list.lo: $(outdir)/af-from-name.h $(outdir)/af-to-name.h -$(outdir)/arphrd-list.lo: $(outdir)/arphrd-from-name.h $(outdir)/arphrd-to-name.h -$(outdir)/cap-list.lo: $(outdir)/cap-from-name.h $(outdir)/cap-to-name.h -$(outdir)/errno-list.lo: $(outdir)/errno-from-name.h $(outdir)/errno-to-name.h +libbasic_la_LIBADD = \ + $(SELINUX_LIBS) \ + $(CAP_LIBS) \ + -lrt \ + -lm $(outdir)/errno-list.txt: $(AM_V_GEN)$(CPP) $(ALL_CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@ @@ -269,4 +277,19 @@ $(outdir)/cap-from-name.gperf: $(outdir)/cap-list.txt $(outdir)/cap-from-name.h: $(outdir)/cap-from-name.gperf $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@ + +std.out_files = libbasic.la +CFLAGS += -pthread +CPPFLAGS += $(libsystemd.CPPFLAGS) $(libselinux.CPPFLAGS) $(libcap.CPPFLAGS) +$(outdir)/libbasic.la: \ + $(patsubst src/basic/%.c,$(outdir)/%.lo,$(filter %.c,$(libbasic_la_SOURCES))) \ + $(libselinux.DEPENDS) $(libcap.DEPENDS) -lrt -lm + +std.gen_files += *-to-name.h *-from-name.h *-from-name.gperf *-list.txt + +$(outdir)/af-list.lo: $(outdir)/af-from-name.h $(outdir)/af-to-name.h +$(outdir)/arphrd-list.lo: $(outdir)/arphrd-from-name.h $(outdir)/arphrd-to-name.h +$(outdir)/cap-list.lo: $(outdir)/cap-from-name.h $(outdir)/cap-to-name.h +$(outdir)/errno-list.lo: $(outdir)/errno-from-name.h $(outdir)/errno-to-name.h + include $(topsrcdir)/build-aux/Makefile.tail.mk |