Makefile.in
changeset 1397 b189a73aa335
parent 1394 e57f8d1344b6
child 1401 1819fd069e89
     1.1 --- a/Makefile.in	Mon Feb 20 20:53:52 2006 +0000
     1.2 +++ b/Makefile.in	Mon Feb 20 22:15:38 2006 +0000
     1.3 @@ -30,6 +30,10 @@
     1.4  SOURCES = @SOURCES@
     1.5  OBJECTS = @OBJECTS@
     1.6  
     1.7 +SDLMAIN_TARGET = libSDLmain.a
     1.8 +SDLMAIN_SOURCES = @SDLMAIN_SOURCES@
     1.9 +SDLMAIN_OBJECTS = @SDLMAIN_OBJECTS@
    1.10 +
    1.11  DIST = acinclude.m4 autogen.sh Borland.html Borland.zip BUGS build-scripts configure configure.in COPYING CREDITS CWprojects.sea.bin docs docs.html EpocBuildFiles.zip include INSTALL Makefile.dc Makefile.in MPWmake.sea.bin PBProjects.tar.gz README* sdl-config.in sdl.m4 SDL.qpg.in SDL.spec SDL.spec.in setvars.cmd src test TODO VisualCE.zip VisualC.html VisualC.zip Watcom.mif WhatsNew Xcode21.tar.gz Xcode.tar.gz XcodeUniversal.tar.gz
    1.12  
    1.13  LT_AGE      = @LT_AGE@
    1.14 @@ -38,7 +42,7 @@
    1.15  LT_REVISION = @LT_REVISION@
    1.16  LT_LDFLAGS  = -no-undefined -rpath $(libdir) -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
    1.17  
    1.18 -all: Makefile $(objects) $(objects)/$(TARGET)
    1.19 +all: Makefile $(objects) $(objects)/$(TARGET) $(objects)/$(TARGET_SDLMAIN)
    1.20  
    1.21  Makefile: $(srcdir)/Makefile.in
    1.22  	$(SHELL) config.status $@
    1.23 @@ -50,12 +54,21 @@
    1.24  depend:
    1.25  	SOURCES="$(SOURCES)" INCLUDE="$(INCLUDE)" objects="$(objects)" output="$(depend)" \
    1.26  	$(SHELL) $(auxdir)/makedep.sh
    1.27 +	for src in $(SDLMAIN_SOURCES); do \
    1.28 +	    obj=`echo $$src | sed -e 's|.*/||' -e 's|\.[^\.]*$$|.o|'`; \
    1.29 +	    echo "$(objects)/$$obj: $$src" >>$(depend); \
    1.30 +	    echo "	\$$(CC) \$$(CFLAGS) -c $$src -o \$$@" >>$(depend); \
    1.31 +	done
    1.32  
    1.33  include $(depend)
    1.34  
    1.35  $(objects)/$(TARGET): $(OBJECTS)
    1.36  	$(LIBTOOL) --mode=link $(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(LIBS) $(LT_LDFLAGS)
    1.37  
    1.38 +$(objects)/$(SDLMAIN_TARGET): $(SDLMAIN_OBJECTS)
    1.39 +	@AR@ cru $@ $(SDLMAIN_OBJECTS)
    1.40 +	@RANLIB@ $@
    1.41 +
    1.42  install: install-bin install-hdrs install-lib install-data install-man
    1.43  install-bin:
    1.44  	$(SHELL) $(auxdir)/mkinstalldirs $(bindir)
    1.45 @@ -70,6 +83,7 @@
    1.46  install-lib:
    1.47  	$(SHELL) $(auxdir)/mkinstalldirs $(libdir)
    1.48  	$(LIBTOOL) --mode=install $(INSTALL) $(objects)/$(TARGET) $(libdir)/$(TARGET)
    1.49 +	$(INSTALL) -m 644 $(objects)/$(SDLMAIN_TARGET) $(libdir)/$(SDLMAIN_TARGET)
    1.50  install-data:
    1.51  	$(SHELL) $(auxdir)/mkinstalldirs $(datadir)/aclocal
    1.52  	$(INSTALL) -m 644 $(srcdir)/sdl.m4 $(datadir)/aclocal/sdl.m4
    1.53 @@ -91,6 +105,7 @@
    1.54  	rm -f $(includedir)/SDL/SDL_config.h
    1.55  uninstall-lib:
    1.56  	$(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(TARGET)
    1.57 +	rm -f $(libdir)/$(SDLMAIN_TARGET)
    1.58  uninstall-data:
    1.59  	rm -f $(datadir)/aclocal/sdl.m4
    1.60  uninstall-man:
    1.61 @@ -121,6 +136,7 @@
    1.62  	rm -rf `find $(distdir) -name CVS`
    1.63  	rm -f `find $(distdir) -name '.cvsignore'`
    1.64  	rm -f `find $(distdir) -name '.#*'`
    1.65 +	rmdir `find $(distdir) -type d -empty`
    1.66  	tar cvf - $(distdir) | gzip --best >$(distfile)
    1.67  	rm -rf $(distdir)
    1.68