Makefile.in
changeset 8876 60edb019f0fe
parent 8829 6ed74a27066a
child 9769 4716db508b0d
equal deleted inserted replaced
8875:c65a4cfdd8b2 8876:60edb019f0fe
    39 SDLTEST_TARGET = libSDL2_test.a
    39 SDLTEST_TARGET = libSDL2_test.a
    40 SDLTEST_OBJECTS = @SDLTEST_OBJECTS@
    40 SDLTEST_OBJECTS = @SDLTEST_OBJECTS@
    41 
    41 
    42 SRC_DIST = *.txt acinclude Android.mk autogen.sh android-project build-scripts cmake configure configure.in debian include Makefile.* sdl2-config.in sdl2.m4 sdl2.pc.in SDL2.spec.in src test VisualC.html VisualC Xcode Xcode-iOS
    42 SRC_DIST = *.txt acinclude Android.mk autogen.sh android-project build-scripts cmake configure configure.in debian include Makefile.* sdl2-config.in sdl2.m4 sdl2.pc.in SDL2.spec.in src test VisualC.html VisualC Xcode Xcode-iOS
    43 GEN_DIST = SDL2.spec
    43 GEN_DIST = SDL2.spec
       
    44 
       
    45 ifneq ($V,1)
       
    46 RUN_CMD_AR     = @echo "  AR    " $@;
       
    47 RUN_CMD_CC     = @echo "  CC    " $@;
       
    48 RUN_CMD_CXX    = @echo "  CXX   " $@;
       
    49 RUN_CMD_LTLINK = @echo "  LTLINK" $@;
       
    50 RUN_CMD_RANLIB = @echo "  RANLIB" $@;
       
    51 LIBTOOL += --quiet
       
    52 endif
    44 
    53 
    45 HDRS = \
    54 HDRS = \
    46 	SDL.h \
    55 	SDL.h \
    47 	SDL_assert.h \
    56 	SDL_assert.h \
    48 	SDL_atomic.h \
    57 	SDL_atomic.h \
   127 	$(SHELL) $(auxdir)/updaterev.sh
   136 	$(SHELL) $(auxdir)/updaterev.sh
   128 
   137 
   129 .PHONY: all update-revision install install-bin install-hdrs install-lib install-data uninstall uninstall-bin uninstall-hdrs uninstall-lib uninstall-data clean distclean dist $(OBJECTS:.lo=.d)
   138 .PHONY: all update-revision install install-bin install-hdrs install-lib install-data uninstall uninstall-bin uninstall-hdrs uninstall-lib uninstall-data clean distclean dist $(OBJECTS:.lo=.d)
   130 
   139 
   131 $(objects)/$(TARGET): $(OBJECTS) $(VERSION_OBJECTS)
   140 $(objects)/$(TARGET): $(OBJECTS) $(VERSION_OBJECTS)
   132 	$(LIBTOOL) --tag=CC --mode=link $(CC) -o $@ $(OBJECTS) $(VERSION_OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
   141 	$(RUN_CMD_LTLINK)$(LIBTOOL) --tag=CC --mode=link $(CC) -o $@ $(OBJECTS) $(VERSION_OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
   133 
   142 
   134 $(objects)/$(SDLMAIN_TARGET): $(SDLMAIN_OBJECTS)
   143 $(objects)/$(SDLMAIN_TARGET): $(SDLMAIN_OBJECTS)
   135 	$(AR) cru $@ $(SDLMAIN_OBJECTS)
   144 	$(RUN_CMD_AR)$(AR) cru $@ $(SDLMAIN_OBJECTS)
   136 	$(RANLIB) $@
   145 	$(RUN_CMD_RANLIB)$(RANLIB) $@
   137 
   146 
   138 $(objects)/$(SDLTEST_TARGET): $(SDLTEST_OBJECTS)
   147 $(objects)/$(SDLTEST_TARGET): $(SDLTEST_OBJECTS)
   139 	$(AR) cru $@ $(SDLTEST_OBJECTS)
   148 	$(RUN_CMD_AR)$(AR) cru $@ $(SDLTEST_OBJECTS)
   140 	$(RANLIB) $@
   149 	$(RUN_CMD_RANLIB)$(RANLIB) $@
   141 
   150 
   142 install: all install-bin install-hdrs install-lib install-data
   151 install: all install-bin install-hdrs install-lib install-data
   143 install-bin:
   152 install-bin:
   144 	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(bindir)
   153 	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(bindir)
   145 	$(INSTALL) -m 755 sdl2-config $(DESTDIR)$(bindir)/sdl2-config
   154 	$(INSTALL) -m 755 sdl2-config $(DESTDIR)$(bindir)/sdl2-config