Makefile.in
changeset 10303 b326f93e1bc5
parent 9792 0569d87c68fc
child 11206 946452867513
equal deleted inserted replaced
10302:729eff9ee77a 10303:b326f93e1bc5
     1 # Makefile to build and install the SDL library
     1 # Makefile to build and install the SDL library
     2 
     2 
     3 top_builddir = .
     3 top_builddir = .
     4 srcdir  = @srcdir@
     4 srcdir  = @srcdir@
     5 objects = build
     5 objects = build
       
     6 gen = gen
     6 prefix = @prefix@
     7 prefix = @prefix@
     7 exec_prefix = @exec_prefix@
     8 exec_prefix = @exec_prefix@
     8 bindir	= @bindir@
     9 bindir	= @bindir@
     9 libdir  = @libdir@
    10 libdir  = @libdir@
    10 includedir = @includedir@
    11 includedir = @includedir@
    29 RANLIB	= @RANLIB@
    30 RANLIB	= @RANLIB@
    30 WINDRES	= @WINDRES@
    31 WINDRES	= @WINDRES@
    31 
    32 
    32 TARGET  = libSDL2.la
    33 TARGET  = libSDL2.la
    33 OBJECTS = @OBJECTS@
    34 OBJECTS = @OBJECTS@
       
    35 GEN_HEADERS = @GEN_HEADERS@
       
    36 GEN_OBJECTS = @GEN_OBJECTS@
    34 VERSION_OBJECTS = @VERSION_OBJECTS@
    37 VERSION_OBJECTS = @VERSION_OBJECTS@
    35 
    38 
    36 SDLMAIN_TARGET = libSDL2main.a
    39 SDLMAIN_TARGET = libSDL2main.a
    37 SDLMAIN_OBJECTS = @SDLMAIN_OBJECTS@
    40 SDLMAIN_OBJECTS = @SDLMAIN_OBJECTS@
    38 
    41 
    39 SDLTEST_TARGET = libSDL2_test.a
    42 SDLTEST_TARGET = libSDL2_test.a
    40 SDLTEST_OBJECTS = @SDLTEST_OBJECTS@
    43 SDLTEST_OBJECTS = @SDLTEST_OBJECTS@
       
    44 
       
    45 WAYLAND_SCANNER = @WAYLAND_SCANNER@
    41 
    46 
    42 SRC_DIST = *.txt acinclude Android.mk autogen.sh android-project build-scripts cmake cmake_uninstall.cmake.in configure configure.in debian docs include Makefile.* sdl2-config.cmake.in sdl2-config.in sdl2.m4 sdl2.pc.in SDL2.spec.in src test VisualC.html VisualC VisualC-WinRT Xcode Xcode-iOS
    47 SRC_DIST = *.txt acinclude Android.mk autogen.sh android-project build-scripts cmake cmake_uninstall.cmake.in configure configure.in debian docs include Makefile.* sdl2-config.cmake.in sdl2-config.in sdl2.m4 sdl2.pc.in SDL2.spec.in src test VisualC.html VisualC VisualC-WinRT Xcode Xcode-iOS
    43 GEN_DIST = SDL2.spec
    48 GEN_DIST = SDL2.spec
    44 
    49 
    45 ifneq ($V,1)
    50 ifneq ($V,1)
    46 RUN_CMD_AR     = @echo "  AR    " $@;
    51 RUN_CMD_AR     = @echo "  AR    " $@;
    47 RUN_CMD_CC     = @echo "  CC    " $@;
    52 RUN_CMD_CC     = @echo "  CC    " $@;
    48 RUN_CMD_CXX    = @echo "  CXX   " $@;
    53 RUN_CMD_CXX    = @echo "  CXX   " $@;
    49 RUN_CMD_LTLINK = @echo "  LTLINK" $@;
    54 RUN_CMD_LTLINK = @echo "  LTLINK" $@;
    50 RUN_CMD_RANLIB = @echo "  RANLIB" $@;
    55 RUN_CMD_RANLIB = @echo "  RANLIB" $@;
       
    56 RUN_CMD_GEN    = @echo "  GEN   " $@;
    51 LIBTOOL += --quiet
    57 LIBTOOL += --quiet
    52 endif
    58 endif
    53 
    59 
    54 HDRS = \
    60 HDRS = \
    55 	SDL.h \
    61 	SDL.h \
   135 update-revision:
   141 update-revision:
   136 	$(SHELL) $(auxdir)/updaterev.sh
   142 	$(SHELL) $(auxdir)/updaterev.sh
   137 
   143 
   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)
   144 .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)
   139 
   145 
   140 $(objects)/$(TARGET): $(OBJECTS) $(VERSION_OBJECTS)
   146 $(objects)/$(TARGET): $(GEN_HEADERS) $(GEN_OBJECTS) $(OBJECTS) $(VERSION_OBJECTS)
   141 	$(RUN_CMD_LTLINK)$(LIBTOOL) --tag=CC --mode=link $(CC) -o $@ $(OBJECTS) $(VERSION_OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
   147 	$(RUN_CMD_LTLINK)$(LIBTOOL) --tag=CC --mode=link $(CC) -o $@ $(OBJECTS) $(GEN_OBJECTS) $(VERSION_OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
   142 
   148 
   143 $(objects)/$(SDLMAIN_TARGET): $(SDLMAIN_OBJECTS)
   149 $(objects)/$(SDLMAIN_TARGET): $(SDLMAIN_OBJECTS)
   144 	$(RUN_CMD_AR)$(AR) cru $@ $(SDLMAIN_OBJECTS)
   150 	$(RUN_CMD_AR)$(AR) cru $@ $(SDLMAIN_OBJECTS)
   145 	$(RUN_CMD_RANLIB)$(RANLIB) $@
   151 	$(RUN_CMD_RANLIB)$(RANLIB) $@
   146 
   152 
   198 	rm -f $(DESTDIR)$(libdir)/pkgconfig/sdl2.pc
   204 	rm -f $(DESTDIR)$(libdir)/pkgconfig/sdl2.pc
   199 	rm -f $(DESTDIR)$(libdir)/cmake/SDL2/sdl2-config.cmake
   205 	rm -f $(DESTDIR)$(libdir)/cmake/SDL2/sdl2-config.cmake
   200 
   206 
   201 clean:
   207 clean:
   202 	rm -rf $(objects)
   208 	rm -rf $(objects)
       
   209 	rm -rf $(gen)
   203 	if test -f test/Makefile; then (cd test; $(MAKE) $@); fi
   210 	if test -f test/Makefile; then (cd test; $(MAKE) $@); fi
   204 
   211 
   205 distclean: clean
   212 distclean: clean
   206 	rm -f Makefile Makefile.rules sdl2-config
   213 	rm -f Makefile Makefile.rules sdl2-config
   207 	rm -f config.status config.cache config.log libtool
   214 	rm -f config.status config.cache config.log libtool