Makefile.in
changeset 6688 ba31830f0912
parent 6607 a7e743825ede
child 6689 e2fc3ae07582
     1.1 --- a/Makefile.in	Sun Nov 25 21:57:13 2012 -0800
     1.2 +++ b/Makefile.in	Mon Nov 26 07:53:56 2012 -0800
     1.3 @@ -36,6 +36,9 @@
     1.4  SDLMAIN_TARGET = libSDL2main.a
     1.5  SDLMAIN_OBJECTS = @SDLMAIN_OBJECTS@
     1.6  
     1.7 +SDLTEST_TARGET = libSDL2_test.a
     1.8 +SDLTEST_OBJECTS = @SDLTEST_OBJECTS@
     1.9 +
    1.10  SRC_DIST = acinclude Android.mk autogen.sh BUGS build-scripts configure configure.in COPYING CREDITS include INSTALL Makefile.minimal Makefile.in README* sdl2-config.in sdl2.m4 sdl2.pc.in SDL2.spec.in src test TODO VisualC.html VisualC VisualCE WhatsNew Xcode Xcode-iOS
    1.11  GEN_DIST = SDL2.spec
    1.12  
    1.13 @@ -89,13 +92,16 @@
    1.14  	begin_code.h \
    1.15  	close_code.h
    1.16  
    1.17 +SDLTEST_HDRS = \
    1.18 +	SDL_test.h
    1.19 +
    1.20  LT_AGE      = @LT_AGE@
    1.21  LT_CURRENT  = @LT_CURRENT@
    1.22  LT_RELEASE  = @LT_RELEASE@
    1.23  LT_REVISION = @LT_REVISION@
    1.24  LT_LDFLAGS  = -no-undefined -rpath $(DESTDIR)$(libdir) -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
    1.25  
    1.26 -all: $(srcdir)/configure Makefile $(objects) $(objects)/$(TARGET) $(objects)/$(SDLMAIN_TARGET)
    1.27 +all: $(srcdir)/configure Makefile $(objects) $(objects)/$(TARGET) $(objects)/$(SDLMAIN_TARGET) $(objects)/$(SDLTEST_TARGET)
    1.28  
    1.29  $(srcdir)/configure: $(srcdir)/configure.in
    1.30  	@echo "Warning, configure.in is out of date"
    1.31 @@ -122,13 +128,17 @@
    1.32  	$(AR) cru $@ $(SDLMAIN_OBJECTS)
    1.33  	$(RANLIB) $@
    1.34  
    1.35 +$(objects)/$(SDLTEST_TARGET): $(SDLTEST_OBJECTS)
    1.36 +	$(AR) cru $@ $(SDLTEST_OBJECTS)
    1.37 +	$(RANLIB) $@
    1.38 +
    1.39  install: all install-bin install-hdrs install-lib install-data
    1.40  install-bin:
    1.41  	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(bindir)
    1.42  	$(INSTALL) -m 755 sdl2-config $(DESTDIR)$(bindir)/sdl2-config
    1.43  install-hdrs: update-revision
    1.44  	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(includedir)/SDL2
    1.45 -	for file in $(HDRS); do \
    1.46 +	for file in $(HDRS) $(SDLTEST_HDRS); do \
    1.47  	    $(INSTALL) -m 644 $(srcdir)/include/$$file $(DESTDIR)$(includedir)/SDL2/$$file; \
    1.48  	done
    1.49  	$(INSTALL) -m 644 include/SDL_config.h $(DESTDIR)$(includedir)/SDL2/SDL_config.h
    1.50 @@ -138,11 +148,13 @@
    1.51  	    $(INSTALL) -m 644 $(srcdir)/include/SDL_revision.h $(DESTDIR)$(includedir)/SDL2/SDL_revision.h; \
    1.52  	fi
    1.53  
    1.54 -install-lib: $(objects) $(objects)/$(TARGET) $(objects)/$(SDLMAIN_TARGET)
    1.55 +install-lib: $(objects) $(objects)/$(TARGET) $(objects)/$(SDLMAIN_TARGET) $(objects)/$(SDLTEST_TARGET)
    1.56  	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(libdir)
    1.57  	$(LIBTOOL) --mode=install $(INSTALL) $(objects)/$(TARGET) $(DESTDIR)$(libdir)/$(TARGET)
    1.58  	$(INSTALL) -m 644 $(objects)/$(SDLMAIN_TARGET) $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
    1.59  	$(RANLIB) $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
    1.60 +	$(INSTALL) -m 644 $(objects)/$(SDLTEST_TARGET) $(DESTDIR)$(libdir)/$(SDLTEST_TARGET)
    1.61 +	$(RANLIB) $(DESTDIR)$(libdir)/$(SDLTEST_TARGET)
    1.62  install-data:
    1.63  	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(datadir)/aclocal
    1.64  	$(INSTALL) -m 644 $(srcdir)/sdl2.m4 $(DESTDIR)$(datadir)/aclocal/sdl2.m4
    1.65 @@ -153,7 +165,7 @@
    1.66  uninstall-bin:
    1.67  	rm -f $(DESTDIR)$(bindir)/sdl2-config
    1.68  uninstall-hdrs:
    1.69 -	for file in $(HDRS); do \
    1.70 +	for file in $(HDRS) $(SDLTEST_HDRS); do \
    1.71  	    rm -f $(DESTDIR)$(includedir)/SDL2/$$file; \
    1.72  	done
    1.73  	rm -f $(DESTDIR)$(includedir)/SDL2/SDL_config.h
    1.74 @@ -162,6 +174,7 @@
    1.75  uninstall-lib:
    1.76  	$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(TARGET)
    1.77  	rm -f $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
    1.78 +	rm -f $(DESTDIR)$(libdir)/$(SDLTEST_TARGET)
    1.79  uninstall-data:
    1.80  	rm -f $(DESTDIR)$(datadir)/aclocal/sdl2.m4
    1.81  	rm -f $(DESTDIR)$(libdir)/pkgconfig/sdl2.pc