mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-01-23 00:07:07 +03:00
fix Makefile.am to use pkg-config
This commit is contained in:
parent
214dd0cb2d
commit
93c17b5f5f
16
Makefile.am
16
Makefile.am
@ -2,7 +2,7 @@
|
||||
AUTOMAKE_OPTIONS=subdir-objects
|
||||
|
||||
PREFIX=/usr
|
||||
AM_CFLAGS=-O2 -Wall -g
|
||||
AM_CFLAGS=-O2 -Wall -g -std=gnu99
|
||||
|
||||
|
||||
bin_PROGRAMS=make-bcache \
|
||||
@ -12,18 +12,22 @@ bin_PROGRAMS=make-bcache \
|
||||
noinst_PROGRAMS=bcache-test
|
||||
|
||||
make_bcache_SOURCES=make-bcache.c bcache.c
|
||||
make_bcache_LDADD= -lm -lssl -lcrypto -luuid
|
||||
make_bcache_LDFLAGS=`pkg-config --libs uuid blkid`
|
||||
make_bcache_CFLAGS=$(AM_CFLAGS) `pkg-config --cflags uuid blkid`
|
||||
|
||||
probe_bcache_SOURCES=probe-bcache.c bcache.c
|
||||
probe_bcache_LDADD=-luuid
|
||||
probe_bcache_LDFLAGS=`pkg-config --libs uuid blkid`
|
||||
probe_bcache_CFLAGS=$(AM_CFLAGS) `pkg-config --cflags uuid blkid`
|
||||
|
||||
bcache_super_show_SOURCES=bcache-super-show.c bcache.c
|
||||
bcache_super_show_LDADD=-luuid
|
||||
bcache_super_show_LDFLAGS=`pkg-config --libs uuid`
|
||||
bcache_super_show_CFLAGS=$(AM_CFLAGS) `pkg-config --cflags uuid`
|
||||
|
||||
bcache_test_SOURCE=bcache-test.c
|
||||
bcache_test_LDADD= -lm -lssl -lcrypto
|
||||
bcache_test_LDFLAGS=-lm `pkg-config --libs openssl`
|
||||
bcache_test_CFLAGS=$(AM_CFLAGS) `pkg-config --cflags openssl`
|
||||
|
||||
udevrule_DATA=61-bcache.rules
|
||||
udevrule_DATA=69-bcache.rules
|
||||
udevruledir=$(prefix)/lib/udev/rules.d
|
||||
|
||||
udevr_DATA=bcache-register
|
||||
|
16
bcache-tools.spec
Normal file
16
bcache-tools.spec
Normal file
@ -0,0 +1,16 @@
|
||||
Summary: bcache-tools
|
||||
Name: bcache-tools
|
||||
Version: 0.1
|
||||
Release: %{?release:%{release}}%{!?release:eng}
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
License: GPL
|
||||
Group: tools
|
||||
BuildRoot: %{_tmppath}/%{name}-root
|
||||
Requires: libblkid1
|
||||
BuildRequires: pkg-config libblkid-dev
|
||||
|
||||
%package dev
|
||||
|
||||
%description
|
||||
|
||||
%files
|
Loading…
Reference in New Issue
Block a user