From 022e5d90f1e3a6b429f522941729438f5452ee02 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 9 Mar 1999 18:32:44 +0000 Subject: Updated Linux DSO rules. Changed configure.in, makeinclude, and src/Makefile to use DSOCOMMAND instead of replacing LIBCOMMAND. src/Makefile now creates both static and shared libraries if --enable-shared is requested. fluid/Makefile always uses the static library so that a CVS build will always work, even if libfltk.so.1 isn't installed (problem for Solaris and Linux, which don't support LD_LIBRARY_PATH). git-svn-id: file:///fltk/svn/fltk/trunk@387 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Makefile | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/Makefile b/src/Makefile index b110fdd0f..05d76777d 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,5 +1,5 @@ # -# "$Id: Makefile,v 1.16 1999/03/04 14:54:18 mike Exp $" +# "$Id: Makefile,v 1.17 1999/03/09 18:32:44 mike Exp $" # # Library makefile for the Fast Light Tool Kit (FLTK). # @@ -150,10 +150,16 @@ LIBRARY = ../lib/$(LIBNAME) OBJECTS = $(CPPFILES:.cxx=.o) $(CFILES:.c=.o) -$(LIBRARY) : $(OBJECTS) - @echo $(LIBCOMMAND) $(LIBRARY) ... - @$(LIBCOMMAND) $(LIBRARY) $(OBJECTS) - @$(RANLIB) $(LIBRARY) +all: $(LIBRARY) ../lib/libfltk.a + +../lib/libfltk.a: $(OBJECTS) + @echo $(LIBCOMMAND) ../lib/libfltk.a ... + @$(LIBCOMMAND) ../lib/libfltk.a $(OBJECTS) + @$(RANLIB) ../lib/libfltk.a + +../lib/libfltk.sl.1 ../lib/libfltk.so.1: $(OBJECTS) + @echo $(DSOCOMMAND) $(LIBRARY) ... + @$(DSOCOMMAND) $(LIBRARY) $(OBJECTS) .SUFFIXES: .cxx .h .o @@ -195,5 +201,5 @@ install: ../lib/$(LIBNAME) -ln -s FL $(includedir)/Fl # -# End of "$Id: Makefile,v 1.16 1999/03/04 14:54:18 mike Exp $". +# End of "$Id: Makefile,v 1.17 1999/03/09 18:32:44 mike Exp $". # -- cgit v1.2.3