Makefile.in
branchSDL-1.2
changeset 6130 987c365cc7bf
parent 6117 6e6e9d549083
equal deleted inserted replaced
6129:19c7412a6345 6130:987c365cc7bf
    34 
    34 
    35 TARGET  = libSDL.la
    35 TARGET  = libSDL.la
    36 SOURCES = @SOURCES@
    36 SOURCES = @SOURCES@
    37 OBJECTS = @OBJECTS@
    37 OBJECTS = @OBJECTS@
    38 
    38 
    39 SDLMAIN_TARGET = libSDLmain.a
    39 SDLMAIN_TARGET = libSDLmain.la
    40 SDLMAIN_SOURCES = @SDLMAIN_SOURCES@
    40 SDLMAIN_SOURCES = @SDLMAIN_SOURCES@
    41 SDLMAIN_OBJECTS = @SDLMAIN_OBJECTS@
    41 SDLMAIN_OBJECTS = @SDLMAIN_OBJECTS@
       
    42 SDLMAIN_LDFLAGS = @SDLMAIN_LDFLAGS@
    42 
    43 
    43 DIST = acinclude autogen.sh Borland.html Borland.zip BUGS build-scripts configure configure.in COPYING CREDITS CWprojects.sea.bin docs docs.html include INSTALL Makefile.dc Makefile.minimal Makefile.in MPWmake.sea.bin README* sdl-config.in sdl.m4 sdl.pc.in SDL.qpg.in SDL.spec SDL.spec.in src test TODO VisualCE VisualC.html VisualC Watcom-OS2.zip Watcom-Win32.zip symbian.zip WhatsNew Xcode
    44 DIST = acinclude autogen.sh Borland.html Borland.zip BUGS build-scripts configure configure.in COPYING CREDITS CWprojects.sea.bin docs docs.html include INSTALL Makefile.dc Makefile.minimal Makefile.in MPWmake.sea.bin README* sdl-config.in sdl.m4 sdl.pc.in SDL.qpg.in SDL.spec SDL.spec.in src test TODO VisualCE VisualC.html VisualC Watcom-OS2.zip Watcom-Win32.zip symbian.zip WhatsNew Xcode
    44 
    45 
    45 HDRS = SDL.h SDL_active.h SDL_audio.h SDL_byteorder.h SDL_cdrom.h SDL_cpuinfo.h SDL_endian.h SDL_error.h SDL_events.h SDL_getenv.h SDL_joystick.h SDL_keyboard.h SDL_keysym.h SDL_loadso.h SDL_main.h SDL_mouse.h SDL_mutex.h SDL_name.h SDL_opengl.h SDL_platform.h SDL_quit.h SDL_rwops.h SDL_stdinc.h SDL_syswm.h SDL_thread.h SDL_timer.h SDL_types.h SDL_version.h SDL_video.h begin_code.h close_code.h
    46 HDRS = SDL.h SDL_active.h SDL_audio.h SDL_byteorder.h SDL_cdrom.h SDL_cpuinfo.h SDL_endian.h SDL_error.h SDL_events.h SDL_getenv.h SDL_joystick.h SDL_keyboard.h SDL_keysym.h SDL_loadso.h SDL_main.h SDL_mouse.h SDL_mutex.h SDL_name.h SDL_opengl.h SDL_platform.h SDL_quit.h SDL_rwops.h SDL_stdinc.h SDL_syswm.h SDL_thread.h SDL_timer.h SDL_types.h SDL_version.h SDL_video.h begin_code.h close_code.h
    46 
    47 
    63 $(objects):
    64 $(objects):
    64 	$(SHELL) $(auxdir)/mkinstalldirs $@
    65 	$(SHELL) $(auxdir)/mkinstalldirs $@
    65 
    66 
    66 .PHONY: all depend install install-bin install-hdrs install-lib install-data install-man uninstall uninstall-bin uninstall-hdrs uninstall-lib uninstall-data uninstall-man clean distclean dist
    67 .PHONY: all depend install install-bin install-hdrs install-lib install-data install-man uninstall uninstall-bin uninstall-hdrs uninstall-lib uninstall-data uninstall-man clean distclean dist
    67 depend:
    68 depend:
    68 	@SOURCES="$(SOURCES)" INCLUDE="$(INCLUDE)" output="$(depend)" \
    69 	@SOURCES="$(SOURCES) $(SDLMAIN_SOURCES)" INCLUDE="$(INCLUDE)" output="$(depend)" \
    69 	$(SHELL) $(auxdir)/makedep.sh
    70 	$(SHELL) $(auxdir)/makedep.sh
    70 	@for src in $(SDLMAIN_SOURCES); do \
       
    71 	    obj=`echo $$src | sed -e 's|.*/||' -e 's|\.[^\.]*$$|.o|'`; \
       
    72 	    echo "\$$(objects)/$$obj: $$src" >>$(depend); \
       
    73 	    echo "	\$$(CC) \$$(CFLAGS) \$$(EXTRA_CFLAGS) -c $$src -o \$$@" >>$(depend); \
       
    74 	done
       
    75 
    71 
    76 include $(depend)
    72 include $(depend)
    77 
    73 
    78 $(objects)/$(TARGET): $(OBJECTS)
    74 $(objects)/$(TARGET): $(OBJECTS)
    79 	$(LIBTOOL) --mode=link $(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
    75 	$(LIBTOOL) --mode=link $(CC) -o $@ $^ $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
    80 
    76 
    81 $(objects)/$(SDLMAIN_TARGET): $(SDLMAIN_OBJECTS)
    77 $(objects)/$(SDLMAIN_TARGET): $(SDLMAIN_OBJECTS)
    82 	$(AR) cru $@ $(SDLMAIN_OBJECTS)
    78 	$(LIBTOOL) --mode=link $(CC) -o $@ $^ $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS) $(SDLMAIN_LDFLAGS)
    83 	$(RANLIB) $@
    79 
    84 
    80 
    85 install: all install-bin install-hdrs install-lib install-data install-man
    81 install: all install-bin install-hdrs install-lib install-data install-man
    86 install-bin:
    82 install-bin:
    87 	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(bindir)
    83 	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(bindir)
    88 	$(INSTALL) -m 755 sdl-config $(DESTDIR)$(bindir)/sdl-config
    84 	$(INSTALL) -m 755 sdl-config $(DESTDIR)$(bindir)/sdl-config
    93 	done
    89 	done
    94 	$(INSTALL) -m 644 include/SDL_config.h $(DESTDIR)$(includedir)/SDL/SDL_config.h
    90 	$(INSTALL) -m 644 include/SDL_config.h $(DESTDIR)$(includedir)/SDL/SDL_config.h
    95 install-lib: $(objects) $(objects)/$(TARGET) $(objects)/$(SDLMAIN_TARGET)
    91 install-lib: $(objects) $(objects)/$(TARGET) $(objects)/$(SDLMAIN_TARGET)
    96 	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(libdir)
    92 	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(libdir)
    97 	$(LIBTOOL) --mode=install $(INSTALL) $(objects)/$(TARGET) $(DESTDIR)$(libdir)/$(TARGET)
    93 	$(LIBTOOL) --mode=install $(INSTALL) $(objects)/$(TARGET) $(DESTDIR)$(libdir)/$(TARGET)
    98 	$(INSTALL) -m 644 $(objects)/$(SDLMAIN_TARGET) $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
    94 	$(LIBTOOL) --mode=install $(INSTALL) $(objects)/$(SDLMAIN_TARGET) $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
    99 	$(RANLIB) $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
       
   100 install-data:
    95 install-data:
   101 	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(datadir)/aclocal
    96 	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(datadir)/aclocal
   102 	$(INSTALL) -m 644 $(srcdir)/sdl.m4 $(DESTDIR)$(datadir)/aclocal/sdl.m4
    97 	$(INSTALL) -m 644 $(srcdir)/sdl.m4 $(DESTDIR)$(datadir)/aclocal/sdl.m4
   103 	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(libdir)/pkgconfig
    98 	$(SHELL) $(auxdir)/mkinstalldirs $(DESTDIR)$(libdir)/pkgconfig
   104 	$(INSTALL) -m 644 sdl.pc $(DESTDIR)$(libdir)/pkgconfig
    99 	$(INSTALL) -m 644 sdl.pc $(DESTDIR)$(libdir)/pkgconfig
   118 	done
   113 	done
   119 	rm -f $(DESTDIR)$(includedir)/SDL/SDL_config.h
   114 	rm -f $(DESTDIR)$(includedir)/SDL/SDL_config.h
   120 	-rmdir $(DESTDIR)$(includedir)/SDL
   115 	-rmdir $(DESTDIR)$(includedir)/SDL
   121 uninstall-lib:
   116 uninstall-lib:
   122 	$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(TARGET)
   117 	$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(TARGET)
   123 	rm -f $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
   118 	$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(SDLMAIN_TARGET)
   124 uninstall-data:
   119 uninstall-data:
   125 	rm -f $(DESTDIR)$(datadir)/aclocal/sdl.m4
   120 	rm -f $(DESTDIR)$(datadir)/aclocal/sdl.m4
   126 	rm -f $(DESTDIR)$(libdir)/pkgconfig/sdl.pc
   121 	rm -f $(DESTDIR)$(libdir)/pkgconfig/sdl.pc
   127 uninstall-man:
   122 uninstall-man:
   128 	for src in $(srcdir)/docs/man3/*.3; do \
   123 	for src in $(srcdir)/docs/man3/*.3; do \