diff --git a/Makefile b/Makefile index 5cd4b15..8803507 100644 --- a/Makefile +++ b/Makefile @@ -69,6 +69,8 @@ dist: $(PACKAGE)-$(VERSION)/tests/library/Makefile.Darwin \ $(PACKAGE)-$(VERSION)/tests/library/Makefile.NetBSD \ $(PACKAGE)-$(VERSION)/tests/library/Makefile.Windows \ + $(PACKAGE)-$(VERSION)/tests/object/project.conf \ + $(PACKAGE)-$(VERSION)/tests/object/Makefile.NetBSD \ $(PACKAGE)-$(VERSION)/tests/plugin/project.conf \ $(PACKAGE)-$(VERSION)/tests/plugin/Makefile.Darwin \ $(PACKAGE)-$(VERSION)/tests/plugin/Makefile.NetBSD \ diff --git a/tests/Makefile b/tests/Makefile index 2129faf..9d66ddc 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -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 library/Makefile.Windows plugin/Makefile.Darwin plugin/Makefile.NetBSD script/project.conf script/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 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: diff --git a/tests/object/Makefile.NetBSD b/tests/object/Makefile.NetBSD new file mode 100644 index 0000000..8d479a1 --- /dev/null +++ b/tests/object/Makefile.NetBSD @@ -0,0 +1,34 @@ +TARGETS = $(OBJDIR)object.o +OBJDIR = +PREFIX = /usr/local +DESTDIR = +BINDIR = $(PREFIX)/bin +SBINDIR = $(PREFIX)/sbin +RM = rm -f +LN = ln -f +MKDIR = mkdir -m 0755 -p +INSTALL = install + + +all: $(TARGETS) + +object.o_OBJS = $(OBJDIR)object.o +object.o_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS) + +$(OBJDIR)object.o: object.c + $(CC) $(object.o_CFLAGS) -o $(OBJDIR)object.o -c object.c + +clean: + $(RM) -- $(object.o_OBJS) + +distclean: clean + $(RM) -- $(TARGETS) + +install: $(TARGETS) + $(MKDIR) $(DESTDIR)$(LIBDIR) + $(INSTALL) -m 0644 $(OBJDIR)object.o $(DESTDIR)$(LIBDIR)/object.o + +uninstall: + $(RM) -- $(DESTDIR)$(LIBDIR)/object.o + +.PHONY: all clean distclean install uninstall diff --git a/tests/object/project.conf b/tests/object/project.conf new file mode 100644 index 0000000..07dc018 --- /dev/null +++ b/tests/object/project.conf @@ -0,0 +1,7 @@ +targets=object.o +dist=Makefile + +[object.o] +type=object +sources=object.c +install=$(LIBDIR) diff --git a/tests/project.conf b/tests/project.conf index 316a1eb..c83256c 100644 --- a/tests/project.conf +++ b/tests/project.conf @@ -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,library/Makefile.Windows,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.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 [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,library/Makefile.Windows,plugin/Makefile.Darwin,plugin/Makefile.NetBSD,script/project.conf,script/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,object/project.conf,object/Makefile.NetBSD,plugin/Makefile.Darwin,plugin/Makefile.NetBSD,script/project.conf,script/Makefile.NetBSD,tests.sh diff --git a/tests/tests.sh b/tests/tests.sh index 8fe2b02..f9082c4 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -101,6 +101,7 @@ _test "Darwin" "library" _test "Darwin" "plugin" _test "NetBSD" "binary" _test "NetBSD" "library" +_test "NetBSD" "object" _test "NetBSD" "plugin" _test "NetBSD" "script" _test "Windows" "binary"