Also test "libtool" targets
This commit is contained in:
parent
bbff942d35
commit
9edcbbaa3c
5
Makefile
5
Makefile
@ -74,6 +74,11 @@ dist:
|
||||
$(PACKAGE)-$(VERSION)/tests/library/Makefile.Linux \
|
||||
$(PACKAGE)-$(VERSION)/tests/library/Makefile.NetBSD \
|
||||
$(PACKAGE)-$(VERSION)/tests/library/Makefile.Windows \
|
||||
$(PACKAGE)-$(VERSION)/tests/libtool/project.conf \
|
||||
$(PACKAGE)-$(VERSION)/tests/libtool/Makefile.Darwin \
|
||||
$(PACKAGE)-$(VERSION)/tests/libtool/Makefile.Linux \
|
||||
$(PACKAGE)-$(VERSION)/tests/libtool/Makefile.NetBSD \
|
||||
$(PACKAGE)-$(VERSION)/tests/libtool/Makefile.Windows \
|
||||
$(PACKAGE)-$(VERSION)/tests/object/project.conf \
|
||||
$(PACKAGE)-$(VERSION)/tests/object/Makefile.NetBSD \
|
||||
$(PACKAGE)-$(VERSION)/tests/plugin/project.conf \
|
||||
|
@ -10,7 +10,7 @@ INSTALL = install
|
||||
|
||||
all: $(TARGETS)
|
||||
|
||||
$(OBJDIR)tests.log: $(OBJDIR)../src/configure$(EXEEXT) binary/project.conf binary/Makefile.Darwin binary/Makefile.NetBSD binary/Makefile.Windows library/project.conf library/Makefile.Darwin library/Makefile.Linux library/Makefile.NetBSD library/Makefile.Windows object/project.conf object/Makefile.NetBSD plugin/Makefile.Darwin plugin/Makefile.NetBSD script/project.conf script/Makefile.NetBSD tests.sh
|
||||
$(OBJDIR)tests.log: $(OBJDIR)../src/configure$(EXEEXT) binary/project.conf binary/Makefile.Darwin binary/Makefile.NetBSD binary/Makefile.Windows library/project.conf library/Makefile.Darwin library/Makefile.Linux library/Makefile.NetBSD library/Makefile.Windows libtool/project.conf libtool/Makefile.Darwin libtool/Makefile.Linux libtool/Makefile.NetBSD libtool/Makefile.Windows object/project.conf object/Makefile.NetBSD plugin/Makefile.Darwin plugin/Makefile.NetBSD script/project.conf script/Makefile.NetBSD tests.sh
|
||||
./tests.sh -P "$(PREFIX)" -- "$(OBJDIR)tests.log"
|
||||
|
||||
clean:
|
||||
|
43
tests/libtool/Makefile.Darwin
Normal file
43
tests/libtool/Makefile.Darwin
Normal file
@ -0,0 +1,43 @@
|
||||
TARGETS = $(OBJDIR)libtest.la
|
||||
OBJDIR =
|
||||
PREFIX = /usr/local
|
||||
DESTDIR =
|
||||
LIBDIR = $(PREFIX)/lib
|
||||
LDFLAGS = -ldl -lintl -ltest
|
||||
AR = ar
|
||||
RANLIB = ranlib
|
||||
CCSHARED= $(CC) -dynamiclib
|
||||
LIBTOOL = libtool
|
||||
RM = rm -f
|
||||
LN = ln -f
|
||||
MKDIR = mkdir -m 0755 -p
|
||||
INSTALL = install
|
||||
|
||||
|
||||
all: $(TARGETS)
|
||||
|
||||
libtest_OBJS = $(OBJDIR)test.lo
|
||||
libtest_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
|
||||
libtest_LDFLAGS = $(LDFLAGSF) $(LDFLAGS)
|
||||
|
||||
$(OBJDIR)libtest.la: $(libtest_OBJS)
|
||||
$(LIBTOOL) --mode=link $(CC) -o $(OBJDIR)libtest.la $(libtest_OBJS) -rpath $(LIBDIR) $(libtest_LDFLAGS)
|
||||
|
||||
$(OBJDIR)test.o test.lo: test.c
|
||||
$(LIBTOOL) --mode=compile $(CC) $(libtest_CFLAGS) -o $(OBJDIR)test.o -c test.c
|
||||
|
||||
clean:
|
||||
$(RM) -- $(libtest_OBJS)
|
||||
|
||||
distclean: clean
|
||||
$(RM) -- $(TARGETS)
|
||||
|
||||
install: $(TARGETS)
|
||||
$(MKDIR) $(DESTDIR)$(LIBDIR)
|
||||
$(LIBTOOL) --mode=install $(INSTALL) -m 0755 $(OBJDIR)libtest.la $(DESTDIR)$(LIBDIR)/libtest.la
|
||||
$(LIBTOOL) --mode=finish $(DESTDIR)/$(LIBDIR)
|
||||
|
||||
uninstall:
|
||||
$(LIBTOOL) --mode=uninstall $(RM) -- $(DESTDIR)$(LIBDIR)/libtest.la
|
||||
|
||||
.PHONY: all clean distclean install uninstall
|
43
tests/libtool/Makefile.Linux
Normal file
43
tests/libtool/Makefile.Linux
Normal file
@ -0,0 +1,43 @@
|
||||
TARGETS = $(OBJDIR)libtest.la
|
||||
OBJDIR =
|
||||
PREFIX = /usr/local
|
||||
DESTDIR =
|
||||
LIBDIR = $(PREFIX)/lib
|
||||
LDFLAGS = -ldl -ltest
|
||||
AR = ar
|
||||
RANLIB = ranlib
|
||||
CCSHARED= $(CC) -shared
|
||||
LIBTOOL = libtool
|
||||
RM = rm -f
|
||||
LN = ln -f
|
||||
MKDIR = mkdir -m 0755 -p
|
||||
INSTALL = install
|
||||
|
||||
|
||||
all: $(TARGETS)
|
||||
|
||||
libtest_OBJS = $(OBJDIR)test.lo
|
||||
libtest_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
|
||||
libtest_LDFLAGS = $(LDFLAGSF) $(LDFLAGS)
|
||||
|
||||
$(OBJDIR)libtest.la: $(libtest_OBJS)
|
||||
$(LIBTOOL) --mode=link $(CC) -o $(OBJDIR)libtest.la $(libtest_OBJS) -rpath $(LIBDIR) $(libtest_LDFLAGS)
|
||||
|
||||
$(OBJDIR)test.o test.lo: test.c
|
||||
$(LIBTOOL) --mode=compile $(CC) $(libtest_CFLAGS) -o $(OBJDIR)test.o -c test.c
|
||||
|
||||
clean:
|
||||
$(RM) -- $(libtest_OBJS)
|
||||
|
||||
distclean: clean
|
||||
$(RM) -- $(TARGETS)
|
||||
|
||||
install: $(TARGETS)
|
||||
$(MKDIR) $(DESTDIR)$(LIBDIR)
|
||||
$(LIBTOOL) --mode=install $(INSTALL) -m 0755 $(OBJDIR)libtest.la $(DESTDIR)$(LIBDIR)/libtest.la
|
||||
$(LIBTOOL) --mode=finish $(DESTDIR)/$(LIBDIR)
|
||||
|
||||
uninstall:
|
||||
$(LIBTOOL) --mode=uninstall $(RM) -- $(DESTDIR)$(LIBDIR)/libtest.la
|
||||
|
||||
.PHONY: all clean distclean install uninstall
|
43
tests/libtool/Makefile.NetBSD
Normal file
43
tests/libtool/Makefile.NetBSD
Normal file
@ -0,0 +1,43 @@
|
||||
TARGETS = $(OBJDIR)libtest.la
|
||||
OBJDIR =
|
||||
PREFIX = /usr/local
|
||||
DESTDIR =
|
||||
LIBDIR = $(PREFIX)/lib
|
||||
LDFLAGS = -lintl -lossaudio -ltest
|
||||
AR = ar
|
||||
RANLIB = ranlib
|
||||
CCSHARED= $(CC) -shared
|
||||
LIBTOOL = libtool
|
||||
RM = rm -f
|
||||
LN = ln -f
|
||||
MKDIR = mkdir -m 0755 -p
|
||||
INSTALL = install
|
||||
|
||||
|
||||
all: $(TARGETS)
|
||||
|
||||
libtest_OBJS = $(OBJDIR)test.lo
|
||||
libtest_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
|
||||
libtest_LDFLAGS = $(LDFLAGSF) $(LDFLAGS)
|
||||
|
||||
$(OBJDIR)libtest.la: $(libtest_OBJS)
|
||||
$(LIBTOOL) --mode=link $(CC) -o $(OBJDIR)libtest.la $(libtest_OBJS) -rpath $(LIBDIR) $(libtest_LDFLAGS)
|
||||
|
||||
$(OBJDIR)test.o test.lo: test.c
|
||||
$(LIBTOOL) --mode=compile $(CC) $(libtest_CFLAGS) -o $(OBJDIR)test.o -c test.c
|
||||
|
||||
clean:
|
||||
$(RM) -- $(libtest_OBJS)
|
||||
|
||||
distclean: clean
|
||||
$(RM) -- $(TARGETS)
|
||||
|
||||
install: $(TARGETS)
|
||||
$(MKDIR) $(DESTDIR)$(LIBDIR)
|
||||
$(LIBTOOL) --mode=install $(INSTALL) -m 0755 $(OBJDIR)libtest.la $(DESTDIR)$(LIBDIR)/libtest.la
|
||||
$(LIBTOOL) --mode=finish $(DESTDIR)/$(LIBDIR)
|
||||
|
||||
uninstall:
|
||||
$(LIBTOOL) --mode=uninstall $(RM) -- $(DESTDIR)$(LIBDIR)/libtest.la
|
||||
|
||||
.PHONY: all clean distclean install uninstall
|
42
tests/libtool/Makefile.Windows
Normal file
42
tests/libtool/Makefile.Windows
Normal file
@ -0,0 +1,42 @@
|
||||
TARGETS = $(OBJDIR)libtest.la
|
||||
OBJDIR =
|
||||
PREFIX = /usr/local
|
||||
DESTDIR =
|
||||
LIBDIR = $(PREFIX)/lib
|
||||
LDFLAGS = -lintl -ltest -lws2_32
|
||||
EXEEXT = .exe
|
||||
CCSHARED= $(CC) -shared -Wl,-no-undefined -Wl,--enable-runtime-pseudo-reloc
|
||||
LIBTOOL = libtool
|
||||
RM = rm -f
|
||||
LN = ln -f
|
||||
MKDIR = mkdir -m 0755 -p
|
||||
INSTALL = install
|
||||
|
||||
|
||||
all: $(TARGETS)
|
||||
|
||||
libtest_OBJS = $(OBJDIR)test.lo
|
||||
libtest_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
|
||||
libtest_LDFLAGS = $(LDFLAGSF) $(LDFLAGS)
|
||||
|
||||
$(OBJDIR)libtest.la: $(libtest_OBJS)
|
||||
$(LIBTOOL) --mode=link $(CC) -o $(OBJDIR)libtest.la $(libtest_OBJS) -rpath $(LIBDIR) $(libtest_LDFLAGS)
|
||||
|
||||
$(OBJDIR)test.o test.lo: test.c
|
||||
$(LIBTOOL) --mode=compile $(CC) $(libtest_CFLAGS) -o $(OBJDIR)test.o -c test.c
|
||||
|
||||
clean:
|
||||
$(RM) -- $(libtest_OBJS)
|
||||
|
||||
distclean: clean
|
||||
$(RM) -- $(TARGETS)
|
||||
|
||||
install: $(TARGETS)
|
||||
$(MKDIR) $(DESTDIR)$(LIBDIR)
|
||||
$(LIBTOOL) --mode=install $(INSTALL) -m 0755 $(OBJDIR)libtest.la $(DESTDIR)$(LIBDIR)/libtest.la
|
||||
$(LIBTOOL) --mode=finish $(DESTDIR)/$(LIBDIR)
|
||||
|
||||
uninstall:
|
||||
$(LIBTOOL) --mode=uninstall $(RM) -- $(DESTDIR)$(LIBDIR)/libtest.la
|
||||
|
||||
.PHONY: all clean distclean install uninstall
|
8
tests/libtool/project.conf
Normal file
8
tests/libtool/project.conf
Normal file
@ -0,0 +1,8 @@
|
||||
targets=libtest
|
||||
ldflags=-ldl -lintl -lossaudio -ltest -lws2_32
|
||||
dist=Makefile
|
||||
|
||||
[libtest]
|
||||
type=libtool
|
||||
sources=test.c
|
||||
install=$(LIBDIR)
|
@ -1,7 +1,7 @@
|
||||
targets=tests.log
|
||||
dist=Makefile,tests.sh,binary/project.conf,binary/Makefile.Darwin,binary/Makefile.NetBSD,binary/Makefile.Windows,library/project.conf,library/Makefile.Darwin,library/Makefile.Linux,library/Makefile.NetBSD,library/Makefile.Windows,object/project.conf,object/Makefile.NetBSD,plugin/project.conf,plugin/Makefile.Darwin,plugin/Makefile.NetBSD,script/project.conf,script/Makefile.NetBSD
|
||||
dist=Makefile,tests.sh,binary/project.conf,binary/Makefile.Darwin,binary/Makefile.NetBSD,binary/Makefile.Windows,library/project.conf,library/Makefile.Darwin,library/Makefile.Linux,library/Makefile.NetBSD,library/Makefile.Windows,libtool/project.conf,libtool/Makefile.Darwin,libtool/Makefile.Linux,libtool/Makefile.NetBSD,libtool/Makefile.Windows,object/project.conf,object/Makefile.NetBSD,plugin/project.conf,plugin/Makefile.Darwin,plugin/Makefile.NetBSD,script/project.conf,script/Makefile.NetBSD
|
||||
|
||||
[tests.log]
|
||||
type=script
|
||||
script=./tests.sh
|
||||
depends=$(OBJDIR)../src/configure$(EXEEXT),binary/project.conf,binary/Makefile.Darwin,binary/Makefile.NetBSD,binary/Makefile.Windows,library/project.conf,library/Makefile.Darwin,library/Makefile.Linux,library/Makefile.NetBSD,library/Makefile.Windows,object/project.conf,object/Makefile.NetBSD,plugin/Makefile.Darwin,plugin/Makefile.NetBSD,script/project.conf,script/Makefile.NetBSD,tests.sh
|
||||
depends=$(OBJDIR)../src/configure$(EXEEXT),binary/project.conf,binary/Makefile.Darwin,binary/Makefile.NetBSD,binary/Makefile.Windows,library/project.conf,library/Makefile.Darwin,library/Makefile.Linux,library/Makefile.NetBSD,library/Makefile.Windows,libtool/project.conf,libtool/Makefile.Darwin,libtool/Makefile.Linux,libtool/Makefile.NetBSD,libtool/Makefile.Windows,object/project.conf,object/Makefile.NetBSD,plugin/Makefile.Darwin,plugin/Makefile.NetBSD,script/project.conf,script/Makefile.NetBSD,tests.sh
|
||||
|
@ -69,15 +69,19 @@ _tests()
|
||||
$DATE
|
||||
_test "Darwin" "binary" || ret=2
|
||||
_test "Darwin" "library" || ret=2
|
||||
_test "Darwin" "libtool" || ret=2
|
||||
_test "Darwin" "plugin" || ret=2
|
||||
_test "Linux" "library" || ret=2
|
||||
_test "Linux" "libtool" || ret=2
|
||||
_test "NetBSD" "binary" || ret=2
|
||||
_test "NetBSD" "library" || ret=2
|
||||
_test "NetBSD" "libtool" || ret=2
|
||||
_test "NetBSD" "object" || ret=2
|
||||
_test "NetBSD" "plugin" || ret=2
|
||||
_test "NetBSD" "script" || ret=2
|
||||
_test "Windows" "binary" || ret=2
|
||||
_test "Windows" "library" || ret=2
|
||||
_test "Windows" "libtool" || ret=2
|
||||
return $ret
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user