Added a (failing) test for generating Windows libraries
This commit is contained in:
parent
0a26b49220
commit
23c221835f
1
Makefile
1
Makefile
@ -67,6 +67,7 @@ dist:
|
||||
$(PACKAGE)-$(VERSION)/tests/library/project.conf \
|
||||
$(PACKAGE)-$(VERSION)/tests/library/Makefile.Darwin \
|
||||
$(PACKAGE)-$(VERSION)/tests/library/Makefile.NetBSD \
|
||||
$(PACKAGE)-$(VERSION)/tests/library/Makefile.Windows \
|
||||
$(PACKAGE)-$(VERSION)/tests/plugin/project.conf \
|
||||
$(PACKAGE)-$(VERSION)/tests/plugin/Makefile.Darwin \
|
||||
$(PACKAGE)-$(VERSION)/tests/plugin/Makefile.NetBSD \
|
||||
|
@ -10,7 +10,7 @@ INSTALL = install
|
||||
|
||||
all: $(TARGETS)
|
||||
|
||||
$(OBJDIR)tests.log: binary/project.conf binary/Makefile.Darwin binary/Makefile.NetBSD binary/Makefile.Windows library/project.conf library/Makefile.Darwin library/Makefile.NetBSD plugin/Makefile.Darwin plugin/Makefile.NetBSD tests.sh
|
||||
$(OBJDIR)tests.log: binary/project.conf binary/Makefile.Darwin binary/Makefile.NetBSD binary/Makefile.Windows library/project.conf library/Makefile.Darwin library/Makefile.NetBSD library/Makefile.Windows plugin/Makefile.Darwin plugin/Makefile.NetBSD tests.sh
|
||||
./tests.sh -P "$(PREFIX)" -- "$(OBJDIR)tests.log"
|
||||
|
||||
clean:
|
||||
|
41
tests/library/Makefile.Windows
Normal file
41
tests/library/Makefile.Windows
Normal file
@ -0,0 +1,41 @@
|
||||
TARGETS = $(OBJDIR)libtest.dll
|
||||
OBJDIR =
|
||||
PREFIX = /usr/local
|
||||
DESTDIR =
|
||||
LIBDIR = $(PREFIX)/lib
|
||||
EXEEXT = .exe
|
||||
AR = ar
|
||||
RANLIB = ranlib
|
||||
CCSHARED= $(CC) -shared -Wl,-no-undefined -Wl,--enable-runtime-pseudo-reloc
|
||||
RM = rm -f
|
||||
LN = ln -f
|
||||
MKDIR = mkdir -m 0755 -p
|
||||
INSTALL = install
|
||||
|
||||
|
||||
all: $(TARGETS)
|
||||
|
||||
libtest_OBJS = $(OBJDIR)test.o
|
||||
libtest_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
|
||||
libtest_LDFLAGS = $(LDFLAGSF) $(LDFLAGS)
|
||||
|
||||
$(OBJDIR)libtest.dll: $(libtest_OBJS)
|
||||
$(CCSHARED) -o $(OBJDIR)libtest.dll $(libtest_OBJS) $(libtest_LDFLAGS)
|
||||
|
||||
$(OBJDIR)test.o: test.c
|
||||
$(CC) $(libtest_CFLAGS) -o $(OBJDIR)test.o -c test.c
|
||||
|
||||
clean:
|
||||
$(RM) -- $(libtest_OBJS)
|
||||
|
||||
distclean: clean
|
||||
$(RM) -- $(TARGETS)
|
||||
|
||||
install: $(TARGETS)
|
||||
$(MKDIR) $(DESTDIR)$(LIBDIR)
|
||||
$(INSTALL) -m 0755 $(OBJDIR)libtest.dll $(DESTDIR)$(LIBDIR)/libtest.dll
|
||||
|
||||
uninstall:
|
||||
$(RM) -- $(DESTDIR)$(LIBDIR)/libtest.dll
|
||||
|
||||
.PHONY: all clean distclean install uninstall
|
@ -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.NetBSD,plugin/project.conf,plugin/Makefile.Darwin,plugin/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.NetBSD,library/Makefile.Windows,plugin/project.conf,plugin/Makefile.Darwin,plugin/Makefile.NetBSD
|
||||
|
||||
[tests.log]
|
||||
type=script
|
||||
script=./tests.sh
|
||||
depends=binary/project.conf,binary/Makefile.Darwin,binary/Makefile.NetBSD,binary/Makefile.Windows,library/project.conf,library/Makefile.Darwin,library/Makefile.NetBSD,plugin/Makefile.Darwin,plugin/Makefile.NetBSD,tests.sh
|
||||
depends=binary/project.conf,binary/Makefile.Darwin,binary/Makefile.NetBSD,binary/Makefile.Windows,library/project.conf,library/Makefile.Darwin,library/Makefile.NetBSD,library/Makefile.Windows,plugin/Makefile.Darwin,plugin/Makefile.NetBSD,tests.sh
|
||||
|
@ -102,4 +102,5 @@ _test "Darwin" "plugin"
|
||||
_test "NetBSD" "binary"
|
||||
_test "NetBSD" "library"
|
||||
_test "NetBSD" "plugin"
|
||||
_test "Windows" "binary") > "$target"
|
||||
_test "Windows" "binary"
|
||||
_fail "Windows" "library") > "$target"
|
||||
|
Loading…
Reference in New Issue
Block a user