use automake and libtool

This commits replaces the handwritten makefile with automake+libtool.
There is some hackery needed for the LD_PRELOAD shared library,
but apart from that there is nothing special and it is a large gain in
portability and standardization.

The spec file is modified as little as is needed to properly build
the RPMs.
This commit is contained in:
Paolo Bonzini
2011-10-28 14:29:43 +02:00
parent d56fa027ff
commit 17319072b1
10 changed files with 127 additions and 152 deletions
-16
View File
@@ -1,16 +0,0 @@
LIBS=-lpopt
CC=gcc
CFLAGS=-g -O0 -fPIC -Wall -W -I. -I./include -I../include "-D_U_=__attribute__((unused))"
TESTS=0100_read10_simple.o 0101_read10_beyond_eol.o 0102_read10_0blocks.o \
0103_read10_rdprotect.o 0104_read10_flags.o 0105_read10_invalid.o \
0110_readcapacity10_simple.o 0111_readcapacity10_pmi.o \
0120_read6_simple.o 0121_read6_beyond_eol.o 0122_read6_invalid.o
all: iscsi-test
iscsi-test: iscsi-test.c $(TESTS)
$(CC) $(CFLAGS) iscsi-test.c -o iscsi-test $(TESTS) ../lib/libiscsi.a $(LIBS)
clean:
rm -f *.o
rm -f iscsi-test