Makefile.in
branchSDL-1.2
changeset 6130 987c365cc7bf
parent 6117 6e6e9d549083
child 13072 eb4b37ea05f6
     1.1 --- a/Makefile.in	Fri Dec 30 06:54:58 2011 -0500
     1.2 +++ b/Makefile.in	Fri Dec 30 14:14:45 2011 -0500
     1.3 @@ -36,9 +36,10 @@
     1.4  SOURCES = @SOURCES@
     1.5  OBJECTS = @OBJECTS@
     1.6  
     1.7 -SDLMAIN_TARGET = libSDLmain.a
     1.8 +SDLMAIN_TARGET = libSDLmain.la
     1.9  SDLMAIN_SOURCES = @SDLMAIN_SOURCES@
    1.10  SDLMAIN_OBJECTS = @SDLMAIN_OBJECTS@
    1.11 +SDLMAIN_LDFLAGS = @SDLMAIN_LDFLAGS@
    1.12  
    1.13  DIST = acinclude autogen.sh Borland.html Borland.zip BUGS build-scripts configure configure.in COPYING CREDITS CWprojects.sea.bin docs docs.html include INSTALL Makefile.dc Makefile.minimal Makefile.in MPWmake.sea.bin README* sdl-config.in sdl.m4 sdl.pc.in SDL.qpg.in SDL.spec SDL.spec.in src test TODO VisualCE VisualC.html VisualC Watcom-OS2.zip Watcom-Win32.zip symbian.zip WhatsNew Xcode
    1.14  
    1.15 @@ -65,22 +66,17 @@
    1.16  
    1.17  .PHONY: all depend install install-bin install-hdrs install-lib install-data install-man uninstall uninstall-bin uninstall-hdrs uninstall-lib uninstall-data uninstall-man clean distclean dist
    1.18  depend:
    1.19 -	@SOURCES="$(SOURCES)" INCLUDE="$(INCLUDE)" output="$(depend)" \
    1.20 +	@SOURCES="$(SOURCES) $(SDLMAIN_SOURCES)" INCLUDE="$(INCLUDE)" output="$(depend)" \
    1.21  	$(SHELL) $(auxdir)/makedep.sh
    1.22 -	@for src in $(SDLMAIN_SOURCES); do \
    1.23 -	    obj=`echo $$src | sed -e 's|.*/||' -e 's|\.[^\.]*$$|.o|'`; \
    1.24 -	    echo "\$$(objects)/$$obj: $$src" >>$(depend); \
    1.25 -	    echo "	\$$(CC) \$$(CFLAGS) \$$(EXTRA_CFLAGS) -c $$src -o \$$@" >>$(depend); \
    1.26 -	done
    1.27  
    1.28  include $(depend)
    1.29  
    1.30  $(objects)/$(TARGET): $(OBJECTS)
    1.31 -	$(LIBTOOL) --mode=link $(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
    1.32 +	$(LIBTOOL) --mode=link $(CC) -o $@ $^ $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
    1.33  
    1.34  $(objects)/$(SDLMAIN_TARGET): $(SDLMAIN_OBJECTS)
    1.35 -	$(AR) cru $@ $(SDLMAIN_OBJECTS)
    1.36 -	$(RANLIB) $@
    1.37 +	$(LIBTOOL) --mode=link $(CC) -o $@ $^ $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS) $(SDLMAIN_LDFLAGS)
    1.38 +
    1.39  
    1.40  install: all install-bin install-hdrs install-lib install-data install-man
    1.41  install-bin:
    1.42 @@ -95,8 +91,7 @@
    1.43  install-lib: $(objects) $(objects)/$(TARGET) $(objects)/$(SDLMAIN_TARGET)
    1.44  	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(libdir)
    1.45  	$(LIBTOOL) --mode=install $(INSTALL) $(objects)/$(TARGET) $(DESTDIR)$(libdir)/$(TARGET)
    1.46 -	$(INSTALL) -m 644 $(objects)/$(SDLMAIN_TARGET) $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
    1.47 -	$(RANLIB) $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
    1.48 +	$(LIBTOOL) --mode=install $(INSTALL) $(objects)/$(SDLMAIN_TARGET) $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
    1.49  install-data:
    1.50  	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(datadir)/aclocal
    1.51  	$(INSTALL) -m 644 $(srcdir)/sdl.m4 $(DESTDIR)$(datadir)/aclocal/sdl.m4
    1.52 @@ -120,7 +115,7 @@
    1.53  	-rmdir $(DESTDIR)$(includedir)/SDL
    1.54  uninstall-lib:
    1.55  	$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(TARGET)
    1.56 -	rm -f $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
    1.57 +	$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
    1.58  uninstall-data:
    1.59  	rm -f $(DESTDIR)$(datadir)/aclocal/sdl.m4
    1.60  	rm -f $(DESTDIR)$(libdir)/pkgconfig/sdl.pc