diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-09-21 16:33:15 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-09-21 16:33:15 +0200 |
commit | f03dbad2932e6d49a4372c4086a684b0e25ede6d (patch) | |
tree | 131bab7dae4d9222f801a7e199dc692937a37ebc /Makefile | |
parent | 4529911b8da55cdda1998b660d56468e1733f1a8 (diff) | |
download | nlplug-f03dbad2932e6d49a4372c4086a684b0e25ede6d.tar.bz2 nlplug-f03dbad2932e6d49a4372c4086a684b0e25ede6d.tar.xz |
nlplug: support searching UUID and LABEL
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -6,13 +6,17 @@ PKGCONFIG ?= pkg-config LIBKMOD_CFLAGS := $(shell $(PKGCONFIG) --cflags libkmod) LIBKMOD_LIBS := $(shell $(PKGCONFIG) --libs libkmod) +BLKID_CFLAGS := $(shell $(PKGCONFIG) --cflags blkid) +BLKID_LIBS := $(shell $(PKGCONFIG) --libs blkid) + nlsockd_SRCS = nlsockd.c nlsockd_OBJS = $(nlsockd_SRCS:%.c=%.o) nlplug_SRCS = nlplug.c nlplug_OBJS = $(nlplug_SRCS:%.c=%.o) -nlplug_CFLAGS = $(LIBKMOD_CFLAGS) -nlplug_LIBS = $(LIBKMOD_LIBS) +nlplug_LIBS = $(LIBKMOD_LIBS) $(BLKID_LIBS) + +CFLAGS += $(LIBKMOD_CFLAGS) $(BLKID_CFLAGS) handler_SRCS = handler.c handler_OBJS = $(handler_SRCS:%.c=%.o) @@ -25,6 +29,7 @@ handler: $(handler_OBJS) handler nlsockd nlplug: + echo $(BLKID_CFLAGS) $(CC) -o $@ $(CFLAGS) $($@_CFLAGS) $($@_OBJS) $(LDFLAGS) $($@_LIBS) clean: |