Makefile.in
changeset 6688 ba31830f0912
parent 6607 a7e743825ede
child 6689 e2fc3ae07582
equal deleted inserted replaced
6687:d229ad942c89 6688:ba31830f0912
    33 OBJECTS = @OBJECTS@
    33 OBJECTS = @OBJECTS@
    34 VERSION_OBJECTS = @VERSION_OBJECTS@
    34 VERSION_OBJECTS = @VERSION_OBJECTS@
    35 
    35 
    36 SDLMAIN_TARGET = libSDL2main.a
    36 SDLMAIN_TARGET = libSDL2main.a
    37 SDLMAIN_OBJECTS = @SDLMAIN_OBJECTS@
    37 SDLMAIN_OBJECTS = @SDLMAIN_OBJECTS@
       
    38 
       
    39 SDLTEST_TARGET = libSDL2_test.a
       
    40 SDLTEST_OBJECTS = @SDLTEST_OBJECTS@
    38 
    41 
    39 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
    42 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
    40 GEN_DIST = SDL2.spec
    43 GEN_DIST = SDL2.spec
    41 
    44 
    42 HDRS = \
    45 HDRS = \
    87 	SDL_version.h \
    90 	SDL_version.h \
    88 	SDL_video.h \
    91 	SDL_video.h \
    89 	begin_code.h \
    92 	begin_code.h \
    90 	close_code.h
    93 	close_code.h
    91 
    94 
       
    95 SDLTEST_HDRS = \
       
    96 	SDL_test.h
       
    97 
    92 LT_AGE      = @LT_AGE@
    98 LT_AGE      = @LT_AGE@
    93 LT_CURRENT  = @LT_CURRENT@
    99 LT_CURRENT  = @LT_CURRENT@
    94 LT_RELEASE  = @LT_RELEASE@
   100 LT_RELEASE  = @LT_RELEASE@
    95 LT_REVISION = @LT_REVISION@
   101 LT_REVISION = @LT_REVISION@
    96 LT_LDFLAGS  = -no-undefined -rpath $(DESTDIR)$(libdir) -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
   102 LT_LDFLAGS  = -no-undefined -rpath $(DESTDIR)$(libdir) -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
    97 
   103 
    98 all: $(srcdir)/configure Makefile $(objects) $(objects)/$(TARGET) $(objects)/$(SDLMAIN_TARGET)
   104 all: $(srcdir)/configure Makefile $(objects) $(objects)/$(TARGET) $(objects)/$(SDLMAIN_TARGET) $(objects)/$(SDLTEST_TARGET)
    99 
   105 
   100 $(srcdir)/configure: $(srcdir)/configure.in
   106 $(srcdir)/configure: $(srcdir)/configure.in
   101 	@echo "Warning, configure.in is out of date"
   107 	@echo "Warning, configure.in is out of date"
   102 	#(cd $(srcdir) && sh autogen.sh && sh configure)
   108 	#(cd $(srcdir) && sh autogen.sh && sh configure)
   103 	@sleep 3
   109 	@sleep 3
   118 $(objects)/$(TARGET): $(OBJECTS) $(VERSION_OBJECTS)
   124 $(objects)/$(TARGET): $(OBJECTS) $(VERSION_OBJECTS)
   119 	$(LIBTOOL) --mode=link $(CC) -o $@ $(OBJECTS) $(VERSION_OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
   125 	$(LIBTOOL) --mode=link $(CC) -o $@ $(OBJECTS) $(VERSION_OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
   120 
   126 
   121 $(objects)/$(SDLMAIN_TARGET): $(SDLMAIN_OBJECTS)
   127 $(objects)/$(SDLMAIN_TARGET): $(SDLMAIN_OBJECTS)
   122 	$(AR) cru $@ $(SDLMAIN_OBJECTS)
   128 	$(AR) cru $@ $(SDLMAIN_OBJECTS)
       
   129 	$(RANLIB) $@
       
   130 
       
   131 $(objects)/$(SDLTEST_TARGET): $(SDLTEST_OBJECTS)
       
   132 	$(AR) cru $@ $(SDLTEST_OBJECTS)
   123 	$(RANLIB) $@
   133 	$(RANLIB) $@
   124 
   134 
   125 install: all install-bin install-hdrs install-lib install-data
   135 install: all install-bin install-hdrs install-lib install-data
   126 install-bin:
   136 install-bin:
   127 	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(bindir)
   137 	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(bindir)
   128 	$(INSTALL) -m 755 sdl2-config $(DESTDIR)$(bindir)/sdl2-config
   138 	$(INSTALL) -m 755 sdl2-config $(DESTDIR)$(bindir)/sdl2-config
   129 install-hdrs: update-revision
   139 install-hdrs: update-revision
   130 	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(includedir)/SDL2
   140 	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(includedir)/SDL2
   131 	for file in $(HDRS); do \
   141 	for file in $(HDRS) $(SDLTEST_HDRS); do \
   132 	    $(INSTALL) -m 644 $(srcdir)/include/$$file $(DESTDIR)$(includedir)/SDL2/$$file; \
   142 	    $(INSTALL) -m 644 $(srcdir)/include/$$file $(DESTDIR)$(includedir)/SDL2/$$file; \
   133 	done
   143 	done
   134 	$(INSTALL) -m 644 include/SDL_config.h $(DESTDIR)$(includedir)/SDL2/SDL_config.h
   144 	$(INSTALL) -m 644 include/SDL_config.h $(DESTDIR)$(includedir)/SDL2/SDL_config.h
   135 	if test -f include/SDL_revision.h; then \
   145 	if test -f include/SDL_revision.h; then \
   136 	    $(INSTALL) -m 644 include/SDL_revision.h $(DESTDIR)$(includedir)/SDL2/SDL_revision.h; \
   146 	    $(INSTALL) -m 644 include/SDL_revision.h $(DESTDIR)$(includedir)/SDL2/SDL_revision.h; \
   137 	else \
   147 	else \
   138 	    $(INSTALL) -m 644 $(srcdir)/include/SDL_revision.h $(DESTDIR)$(includedir)/SDL2/SDL_revision.h; \
   148 	    $(INSTALL) -m 644 $(srcdir)/include/SDL_revision.h $(DESTDIR)$(includedir)/SDL2/SDL_revision.h; \
   139 	fi
   149 	fi
   140 
   150 
   141 install-lib: $(objects) $(objects)/$(TARGET) $(objects)/$(SDLMAIN_TARGET)
   151 install-lib: $(objects) $(objects)/$(TARGET) $(objects)/$(SDLMAIN_TARGET) $(objects)/$(SDLTEST_TARGET)
   142 	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(libdir)
   152 	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(libdir)
   143 	$(LIBTOOL) --mode=install $(INSTALL) $(objects)/$(TARGET) $(DESTDIR)$(libdir)/$(TARGET)
   153 	$(LIBTOOL) --mode=install $(INSTALL) $(objects)/$(TARGET) $(DESTDIR)$(libdir)/$(TARGET)
   144 	$(INSTALL) -m 644 $(objects)/$(SDLMAIN_TARGET) $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
   154 	$(INSTALL) -m 644 $(objects)/$(SDLMAIN_TARGET) $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
   145 	$(RANLIB) $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
   155 	$(RANLIB) $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
       
   156 	$(INSTALL) -m 644 $(objects)/$(SDLTEST_TARGET) $(DESTDIR)$(libdir)/$(SDLTEST_TARGET)
       
   157 	$(RANLIB) $(DESTDIR)$(libdir)/$(SDLTEST_TARGET)
   146 install-data:
   158 install-data:
   147 	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(datadir)/aclocal
   159 	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(datadir)/aclocal
   148 	$(INSTALL) -m 644 $(srcdir)/sdl2.m4 $(DESTDIR)$(datadir)/aclocal/sdl2.m4
   160 	$(INSTALL) -m 644 $(srcdir)/sdl2.m4 $(DESTDIR)$(datadir)/aclocal/sdl2.m4
   149 	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(libdir)/pkgconfig
   161 	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(libdir)/pkgconfig
   150 	$(INSTALL) -m 644 sdl2.pc $(DESTDIR)$(libdir)/pkgconfig
   162 	$(INSTALL) -m 644 sdl2.pc $(DESTDIR)$(libdir)/pkgconfig
   151 
   163 
   152 uninstall: uninstall-bin uninstall-hdrs uninstall-lib uninstall-data
   164 uninstall: uninstall-bin uninstall-hdrs uninstall-lib uninstall-data
   153 uninstall-bin:
   165 uninstall-bin:
   154 	rm -f $(DESTDIR)$(bindir)/sdl2-config
   166 	rm -f $(DESTDIR)$(bindir)/sdl2-config
   155 uninstall-hdrs:
   167 uninstall-hdrs:
   156 	for file in $(HDRS); do \
   168 	for file in $(HDRS) $(SDLTEST_HDRS); do \
   157 	    rm -f $(DESTDIR)$(includedir)/SDL2/$$file; \
   169 	    rm -f $(DESTDIR)$(includedir)/SDL2/$$file; \
   158 	done
   170 	done
   159 	rm -f $(DESTDIR)$(includedir)/SDL2/SDL_config.h
   171 	rm -f $(DESTDIR)$(includedir)/SDL2/SDL_config.h
   160 	rm -f $(DESTDIR)$(includedir)/SDL2/SDL_revision.h
   172 	rm -f $(DESTDIR)$(includedir)/SDL2/SDL_revision.h
   161 	-rmdir $(DESTDIR)$(includedir)/SDL2
   173 	-rmdir $(DESTDIR)$(includedir)/SDL2
   162 uninstall-lib:
   174 uninstall-lib:
   163 	$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(TARGET)
   175 	$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(TARGET)
   164 	rm -f $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
   176 	rm -f $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
       
   177 	rm -f $(DESTDIR)$(libdir)/$(SDLTEST_TARGET)
   165 uninstall-data:
   178 uninstall-data:
   166 	rm -f $(DESTDIR)$(datadir)/aclocal/sdl2.m4
   179 	rm -f $(DESTDIR)$(datadir)/aclocal/sdl2.m4
   167 	rm -f $(DESTDIR)$(libdir)/pkgconfig/sdl2.pc
   180 	rm -f $(DESTDIR)$(libdir)/pkgconfig/sdl2.pc
   168 
   181 
   169 clean:
   182 clean: