sdl

FORK: Simple Directmedia Layer
git clone https://git.neptards.moe/neptards/sdl.git
Log | Files | Refs

Makefile.in (7781B)


      1 # Makefile to build and install the SDL library
      2 
      3 top_builddir = .
      4 srcdir  = @srcdir@
      5 objects = build
      6 gen = gen
      7 prefix = @prefix@
      8 exec_prefix = @exec_prefix@
      9 bindir	= @bindir@
     10 libdir  = @libdir@
     11 includedir = @includedir@
     12 datarootdir = @datarootdir@
     13 datadir	= @datadir@
     14 auxdir	= @ac_aux_dir@
     15 distpath = $(srcdir)/..
     16 distdir = SDL2-@SDL_VERSION@
     17 distfile = $(distdir).tar.gz
     18 
     19 @SET_MAKE@
     20 SHELL	= @SHELL@
     21 CC      = @CC@
     22 INCLUDE = @INCLUDE@
     23 CFLAGS  = @BUILD_CFLAGS@
     24 EXTRA_CFLAGS = @EXTRA_CFLAGS@
     25 LDFLAGS = @BUILD_LDFLAGS@
     26 EXTRA_LDFLAGS = @EXTRA_LDFLAGS@
     27 LIBTOOL = @LIBTOOL@
     28 INSTALL = @INSTALL@
     29 AR	= @AR@
     30 RANLIB	= @RANLIB@
     31 RC	= @RC@
     32 
     33 TARGET  = libSDL2.la
     34 OBJECTS = @OBJECTS@
     35 GEN_HEADERS = @GEN_HEADERS@
     36 GEN_OBJECTS = @GEN_OBJECTS@
     37 VERSION_OBJECTS = @VERSION_OBJECTS@
     38 
     39 SDLMAIN_TARGET = libSDL2main.la
     40 SDLMAIN_OBJECTS = @SDLMAIN_OBJECTS@
     41 
     42 SDLTEST_TARGET = libSDL2_test.la
     43 SDLTEST_OBJECTS = @SDLTEST_OBJECTS@
     44 
     45 WAYLAND_SCANNER = @WAYLAND_SCANNER@
     46 
     47 INSTALL_SDL2_CONFIG = @INSTALL_SDL2_CONFIG@
     48 
     49 SRC_DIST = *.txt acinclude Android.mk autogen.sh android-project build-scripts cmake cmake_uninstall.cmake.in configure configure.ac debian docs include Makefile.* sdl2-config.cmake.in sdl2-config-version.cmake.in sdl2-config.in sdl2.m4 sdl2.pc.in SDL2.spec.in SDL2Config.cmake src test VisualC.html VisualC VisualC-WinRT Xcode Xcode-iOS wayland-protocols
     50 GEN_DIST = SDL2.spec
     51 
     52 ifneq ($V,1)
     53 RUN_CMD_AR     = @echo "  AR    " $@;
     54 RUN_CMD_CC     = @echo "  CC    " $@;
     55 RUN_CMD_CXX    = @echo "  CXX   " $@;
     56 RUN_CMD_LTLINK = @echo "  LTLINK" $@;
     57 RUN_CMD_RANLIB = @echo "  RANLIB" $@;
     58 RUN_CMD_RC     = @echo "  RC    " $@;
     59 RUN_CMD_GEN    = @echo "  GEN   " $@;
     60 LIBTOOL += --quiet
     61 endif
     62 
     63 HDRS = \
     64 	SDL.h \
     65 	SDL_assert.h \
     66 	SDL_atomic.h \
     67 	SDL_audio.h \
     68 	SDL_bits.h \
     69 	SDL_blendmode.h \
     70 	SDL_clipboard.h \
     71 	SDL_cpuinfo.h \
     72 	SDL_egl.h \
     73 	SDL_endian.h \
     74 	SDL_error.h \
     75 	SDL_events.h \
     76 	SDL_filesystem.h \
     77 	SDL_gamecontroller.h \
     78 	SDL_gesture.h \
     79 	SDL_haptic.h \
     80 	SDL_hints.h \
     81 	SDL_joystick.h \
     82 	SDL_keyboard.h \
     83 	SDL_keycode.h \
     84 	SDL_loadso.h \
     85 	SDL_locale.h \
     86 	SDL_log.h \
     87 	SDL_main.h \
     88 	SDL_messagebox.h \
     89 	SDL_metal.h \
     90 	SDL_misc.h \
     91 	SDL_mouse.h \
     92 	SDL_mutex.h \
     93 	SDL_name.h \
     94 	SDL_opengl.h \
     95 	SDL_opengl_glext.h \
     96 	SDL_opengles.h \
     97 	SDL_opengles2_gl2ext.h \
     98 	SDL_opengles2_gl2.h \
     99 	SDL_opengles2_gl2platform.h \
    100 	SDL_opengles2.h \
    101 	SDL_opengles2_khrplatform.h \
    102 	SDL_pixels.h \
    103 	SDL_platform.h \
    104 	SDL_power.h \
    105 	SDL_quit.h \
    106 	SDL_rect.h \
    107 	SDL_render.h \
    108 	SDL_rwops.h \
    109 	SDL_scancode.h \
    110 	SDL_sensor.h \
    111 	SDL_shape.h \
    112 	SDL_stdinc.h \
    113 	SDL_surface.h \
    114 	SDL_system.h \
    115 	SDL_syswm.h \
    116 	SDL_thread.h \
    117 	SDL_timer.h \
    118 	SDL_touch.h \
    119 	SDL_types.h \
    120 	SDL_version.h \
    121 	SDL_video.h \
    122 	SDL_vulkan.h \
    123 	begin_code.h \
    124 	close_code.h
    125 
    126 SDLTEST_HDRS = $(shell ls $(srcdir)/include | fgrep SDL_test)
    127 
    128 LT_AGE      = @LT_AGE@
    129 LT_CURRENT  = @LT_CURRENT@
    130 LT_RELEASE  = @LT_RELEASE@
    131 LT_REVISION = @LT_REVISION@
    132 LT_LDFLAGS  = -no-undefined -rpath $(libdir) -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
    133 
    134 all: $(srcdir)/configure Makefile $(objects)/$(TARGET) $(objects)/$(SDLMAIN_TARGET) $(objects)/$(SDLTEST_TARGET)
    135 
    136 $(srcdir)/configure: $(srcdir)/configure.ac
    137 	@echo "Warning, configure is out of date, please re-run autogen.sh"
    138 
    139 Makefile: $(srcdir)/Makefile.in
    140 	$(SHELL) config.status $@
    141 
    142 Makefile.in:;
    143 
    144 $(objects)/.created:
    145 	$(SHELL) $(auxdir)/mkinstalldirs $(objects)
    146 	touch $@
    147 
    148 update-revision:
    149 	$(SHELL) $(auxdir)/updaterev.sh
    150 
    151 .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)
    152 
    153 $(objects)/$(TARGET): $(GEN_HEADERS) $(GEN_OBJECTS) $(OBJECTS) $(VERSION_OBJECTS)
    154 	$(RUN_CMD_LTLINK)$(LIBTOOL) --tag=CC --mode=link $(CC) -o $@ $(OBJECTS) $(GEN_OBJECTS) $(VERSION_OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
    155 
    156 $(objects)/$(SDLMAIN_TARGET): $(SDLMAIN_OBJECTS)
    157 	$(RUN_CMD_LTLINK)$(LIBTOOL) --tag=CC --mode=link $(CC) -static -o $@ $(SDLMAIN_OBJECTS) -rpath $(libdir)
    158 
    159 $(objects)/$(SDLTEST_TARGET): $(SDLTEST_OBJECTS)
    160 	$(RUN_CMD_LTLINK)$(LIBTOOL) --tag=CC --mode=link $(CC) -static -o $@ $(SDLTEST_OBJECTS) -rpath $(libdir)
    161 
    162 install: all install-bin install-hdrs install-lib install-data
    163 install-bin:
    164 ifeq ($(INSTALL_SDL2_CONFIG),TRUE)
    165 	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(bindir)
    166 	$(INSTALL) -m 755 sdl2-config $(DESTDIR)$(bindir)/sdl2-config
    167 endif
    168 
    169 install-hdrs: update-revision
    170 	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(includedir)/SDL2
    171 	for file in $(HDRS) $(SDLTEST_HDRS); do \
    172 	    $(INSTALL) -m 644 $(srcdir)/include/$$file $(DESTDIR)$(includedir)/SDL2/$$file; \
    173 	done
    174 	$(INSTALL) -m 644 include/SDL_config.h $(DESTDIR)$(includedir)/SDL2/SDL_config.h
    175 	if test -f include/SDL_revision.h; then \
    176 	    $(INSTALL) -m 644 include/SDL_revision.h $(DESTDIR)$(includedir)/SDL2/SDL_revision.h; \
    177 	else \
    178 	    $(INSTALL) -m 644 $(srcdir)/include/SDL_revision.h $(DESTDIR)$(includedir)/SDL2/SDL_revision.h; \
    179 	fi
    180 
    181 install-lib: $(objects)/$(TARGET) $(objects)/$(SDLMAIN_TARGET) $(objects)/$(SDLTEST_TARGET)
    182 	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(libdir)
    183 	$(LIBTOOL) --mode=install $(INSTALL) $(objects)/$(TARGET) $(DESTDIR)$(libdir)/$(TARGET)
    184 	$(LIBTOOL) --mode=install $(INSTALL) $(objects)/$(SDLMAIN_TARGET) $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
    185 	$(LIBTOOL) --mode=install $(INSTALL) $(objects)/$(SDLTEST_TARGET) $(DESTDIR)$(libdir)/$(SDLTEST_TARGET)
    186 install-data:
    187 	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(datadir)/aclocal
    188 	$(INSTALL) -m 644 $(srcdir)/sdl2.m4 $(DESTDIR)$(datadir)/aclocal/sdl2.m4
    189 	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(libdir)/pkgconfig
    190 	$(INSTALL) -m 644 sdl2.pc $(DESTDIR)$(libdir)/pkgconfig
    191 ifeq ($(INSTALL_SDL2_CONFIG),TRUE)
    192 	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(libdir)/cmake/SDL2
    193 	$(INSTALL) -m 644 sdl2-config.cmake $(DESTDIR)$(libdir)/cmake/SDL2
    194 	$(INSTALL) -m 644 sdl2-config-version.cmake $(DESTDIR)$(libdir)/cmake/SDL2
    195 endif
    196 
    197 uninstall: uninstall-bin uninstall-hdrs uninstall-lib uninstall-data
    198 uninstall-bin:
    199 	rm -f $(DESTDIR)$(bindir)/sdl2-config
    200 uninstall-hdrs:
    201 	for file in $(HDRS) $(SDLTEST_HDRS); do \
    202 	    rm -f $(DESTDIR)$(includedir)/SDL2/$$file; \
    203 	done
    204 	rm -f $(DESTDIR)$(includedir)/SDL2/SDL_config.h
    205 	rm -f $(DESTDIR)$(includedir)/SDL2/SDL_revision.h
    206 	-rmdir $(DESTDIR)$(includedir)/SDL2
    207 uninstall-lib:
    208 	$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(TARGET)
    209 	rm -f $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
    210 	rm -f $(DESTDIR)$(libdir)/$(SDLTEST_TARGET)
    211 uninstall-data:
    212 	rm -f $(DESTDIR)$(datadir)/aclocal/sdl2.m4
    213 	rm -f $(DESTDIR)$(libdir)/pkgconfig/sdl2.pc
    214 	rm -f $(DESTDIR)$(libdir)/cmake/SDL2/sdl2-config.cmake
    215 	rm -f $(DESTDIR)$(libdir)/cmake/SDL2/sdl2-config-version.cmake
    216 
    217 clean:
    218 	rm -rf $(objects)
    219 	rm -rf $(gen)
    220 	if test -f test/Makefile; then (cd test; $(MAKE) $@); fi
    221 
    222 distclean: clean
    223 	rm -f Makefile Makefile.rules sdl2-config
    224 	rm -f config.status config.cache config.log libtool
    225 	rm -rf $(srcdir)/autom4te*
    226 	find $(srcdir) \( \
    227 	    -name '*~' -o \
    228 	    -name '*.bak' -o \
    229 	    -name '*.old' -o \
    230 	    -name '*.rej' -o \
    231 	    -name '*.orig' -o \
    232 	    -name '.#*' \) \
    233 	    -exec rm -f {} \;
    234 	if test -f test/Makefile; then (cd test; $(MAKE) $@); fi
    235 
    236 dist $(distfile):
    237 	$(SHELL) $(auxdir)/mkinstalldirs $(distdir)
    238 	(cd $(srcdir); tar cf - $(SRC_DIST)) | (cd $(distdir); tar xf -)
    239 	tar cf - $(GEN_DIST) | (cd $(distdir); tar xf -)
    240 	find $(distdir) \( \
    241 	    -name '*~' -o \
    242 	    -name '*.bak' -o \
    243 	    -name '*.old' -o \
    244 	    -name '*.rej' -o \
    245 	    -name '*.orig' -o \
    246 	    -name '.#*' \) \
    247 	    -exec rm -f {} \;
    248 	if test -f $(distdir)/test/Makefile; then (cd $(distdir)/test && make distclean); fi
    249 	(cd $(distdir); build-scripts/updaterev.sh)
    250 	tar cvf - $(distdir) | gzip --best >$(distfile)
    251 	rm -rf $(distdir)
    252 
    253 rpm: $(distfile)
    254 	rpmbuild -ta $?