$NetBSD: patch-ag,v 1.6 2007/01/02 12:42:45 joerg Exp $ --- src/Makefile.orig 2005-08-08 02:54:30.000000000 +0200 +++ src/Makefile @@ -200,6 +200,10 @@ $(LIBNAME): $(OBJECTS) $(LIBCOMMAND) $@ $(OBJECTS) $(RANLIB) $@ +libfltk.la: $(OBJECTS) + echo $(CXX) $@ ... + $(CXX) -o $@ $(OBJECTS:.o=.lo) -rpath $(prefix)/lib -version-info 1:6 $(LDLIBS) $DEBUGFLAG + libfltk.so.1.1: $(OBJECTS) echo $(DSOCOMMAND) $@ ... $(DSOCOMMAND) $@ $(OBJECTS) @@ -236,6 +240,10 @@ $(FLLIBNAME): $(FLOBJECTS) $(LIBCOMMAND) $@ $(FLOBJECTS) $(RANLIB) $@ +libfltk_forms.la: $(FLOBJECTS) + echo $(CXX) $@ ... + $(CXX) -o $@ $(FLOBJECTS:.o=.lo) -rpath $(prefix)/lib -version-info 1:6 $(LDLIBS) $DEBUGFLAG + libfltk_forms.so.1.1: $(FLOBJECTS) libfltk.so.1.1 echo $(DSOCOMMAND) $@ ... $(DSOCOMMAND) $@ $(FLOBJECTS) -L. -lfltk @@ -272,6 +280,10 @@ $(GLLIBNAME): $(GLOBJECTS) $(LIBCOMMAND) $@ $(GLOBJECTS) $(RANLIB) $@ +libfltk_gl.la: $(GLOBJECTS) + echo $(CXX) $@ ... + $(CXX) -o $@ $(GLOBJECTS:.o=.lo) -rpath $(prefix)/lib -version-info 1:6 $(LDLIBS) $DEBUGFLAG + libfltk_gl.so.1.1: $(GLOBJECTS) libfltk.so.1.1 echo $(DSOCOMMAND) $@ ... $(DSOCOMMAND) $@ $(GLOBJECTS) -L. -lfltk @@ -308,6 +320,10 @@ $(IMGLIBNAME): $(IMGOBJECTS) $(LIBCOMMAND) $@ $(IMGOBJECTS) $(RANLIB) $@ +libfltk_images.la: $(IMGOBJECTS) + echo $(CXX) $@ ... + $(CXX) -o $@ $(IMGOBJECTS:.o=.lo) -rpath $(prefix)/lib -version-info 1:6 $(LDLIBS) $DEBUGFLAG + libfltk_images.so.1.1: $(IMGOBJECTS) libfltk.so.1.1 echo $(DSOCOMMAND) $@ ... $(DSOCOMMAND) $@ $(IMGOBJECTS) -L. $(IMAGELIBS) -lfltk @@ -477,6 +493,9 @@ install: $(LIBNAME) $(DSONAME) \ $(RANLIB) $(DESTDIR)$(libdir)/$(GLLIBNAME); \ fi $(RANLIB) $(DESTDIR)$(libdir)/$(IMGLIBNAME) + if test x$(DSONAME) = xlibfltk.la; then\ + $(INSTALL_LIB) libfltk.la $(DESTDIR)$(libdir); \ + fi if test x$(DSONAME) = xlibfltk.so.1.1; then\ $(RM) $(DESTDIR)$(libdir)/libfltk.so*;\ $(CP) libfltk.so.1.1 $(DESTDIR)$(libdir); \ @@ -500,6 +519,9 @@ install: $(LIBNAME) $(DSONAME) \ $(CP) libfltk_s.a $(DESTDIR)$(libdir); \ $(CHMOD) 755 $(DESTDIR)$(libdir)/libfltk_s.a; \ fi + if test x$(FLDSONAME) = xlibfltk_forms.la; then\ + $(INSTALL_LIB) libfltk_forms.la $(DESTDIR)$(libdir); \ + fi if test x$(DSONAME) = xcygfltknox-1.1.dll; then\ $(RM) $(DESTDIR)$(bindir)/$(DSONAME);\ $(CP) $(DSONAME) $(DESTDIR)$(bindir); \ @@ -522,6 +544,9 @@ install: $(LIBNAME) $(DSONAME) \ $(CHMOD) 755 $(DESTDIR)$(libdir)/libfltk_forms.so.1.1; \ $(LN) libfltk_forms.so.1.1 $(DESTDIR)$(libdir)/libfltk_forms.so;\ fi + if test x$(GLDSONAME) = xlibfltk_gl.la; then\ + $(INSTALL_LIB) libfltk_gl.la $(DESTDIR)$(libdir); \ + fi if test x$(FLDSONAME) = xlibfltk_forms.sl.1.1; then\ $(RM) $(DESTDIR)$(libdir)/libfltk_forms.sl*;\ $(CP) libfltk_forms.sl.1.1 $(DESTDIR)$(libdir); \ @@ -594,6 +619,9 @@ install: $(LIBNAME) $(DSONAME) \ $(CP) libfltk_gl.dll.a $(DESTDIR)$(libdir); \ $(CHMOD) 755 $(DESTDIR)$(libdir)/libfltk_gl.dll.a; \ fi + if test x$(IMGDSONAME) = xlibfltk_images.la; then\ + $(INSTALL_LIB) libfltk_images.la $(DESTDIR)$(libdir); \ + fi if test x$(IMGDSONAME) = xlibfltk_images.so.1.1; then\ $(RM) $(DESTDIR)$(libdir)/libfltk_images.so*;\ $(CP) libfltk_images.so.1.1 $(DESTDIR)$(libdir); \