Makefile.in
changeset 2984 0b160c970b7e
parent 2983 388c5a2daeac
child 3027 61225d2834a3
equal deleted inserted replaced
2983:388c5a2daeac 2984:0b160c970b7e
    33 WINDRES	= @WINDRES@
    33 WINDRES	= @WINDRES@
    34 
    34 
    35 TARGET  = libSDL.la
    35 TARGET  = libSDL.la
    36 SOURCES = @SOURCES@
    36 SOURCES = @SOURCES@
    37 OBJECTS = @OBJECTS@
    37 OBJECTS = @OBJECTS@
    38 REVISION = $(srcdir)/include/SDL_revision.h
       
    39 
    38 
    40 SDLMAIN_TARGET = libSDLmain.a
    39 SDLMAIN_TARGET = libSDLmain.a
    41 SDLMAIN_SOURCES = @SDLMAIN_SOURCES@
    40 SDLMAIN_SOURCES = @SDLMAIN_SOURCES@
    42 SDLMAIN_OBJECTS = @SDLMAIN_OBJECTS@
    41 SDLMAIN_OBJECTS = @SDLMAIN_OBJECTS@
    43 
    42 
    49 LT_CURRENT  = @LT_CURRENT@
    48 LT_CURRENT  = @LT_CURRENT@
    50 LT_RELEASE  = @LT_RELEASE@
    49 LT_RELEASE  = @LT_RELEASE@
    51 LT_REVISION = @LT_REVISION@
    50 LT_REVISION = @LT_REVISION@
    52 LT_LDFLAGS  = -no-undefined -rpath $(DESTDIR)$(libdir) -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
    51 LT_LDFLAGS  = -no-undefined -rpath $(DESTDIR)$(libdir) -release $(LT_RELEASE) -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
    53 
    52 
    54 all: $(srcdir)/configure Makefile $(objects) $(objects)/$(TARGET) $(objects)/$(SDLMAIN_TARGET)
    53 all: $(srcdir)/configure Makefile $(objects) update-revision $(objects)/$(TARGET) $(objects)/$(SDLMAIN_TARGET)
    55 
    54 
    56 $(srcdir)/configure: $(srcdir)/configure.in
    55 $(srcdir)/configure: $(srcdir)/configure.in
    57 	@echo "Warning, configure.in is out of date"
    56 	@echo "Warning, configure.in is out of date"
    58 	#(cd $(srcdir) && sh autogen.sh && sh configure)
    57 	#(cd $(srcdir) && sh autogen.sh && sh configure)
    59 	@sleep 3
    58 	@sleep 3
    64 $(objects):
    63 $(objects):
    65 	$(SHELL) $(auxdir)/mkinstalldirs $@
    64 	$(SHELL) $(auxdir)/mkinstalldirs $@
    66 
    65 
    67 update-revision:
    66 update-revision:
    68 	$(SHELL) $(auxdir)/updaterev.sh
    67 	$(SHELL) $(auxdir)/updaterev.sh
    69 
       
    70 $(REVISION): update-revision
       
    71 
    68 
    72 .PHONY: all update-revision 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
    69 .PHONY: all update-revision 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
    73 depend:
    70 depend:
    74 	@SOURCES="$(SOURCES)" INCLUDE="$(INCLUDE)" output="$(depend)" \
    71 	@SOURCES="$(SOURCES)" INCLUDE="$(INCLUDE)" output="$(depend)" \
    75 	$(SHELL) $(auxdir)/makedep.sh
    72 	$(SHELL) $(auxdir)/makedep.sh
    79 	    echo "	\$$(CC) \$$(CFLAGS) \$$(EXTRA_CFLAGS) -c $$src -o \$$@" >>$(depend); \
    76 	    echo "	\$$(CC) \$$(CFLAGS) \$$(EXTRA_CFLAGS) -c $$src -o \$$@" >>$(depend); \
    80 	done
    77 	done
    81 
    78 
    82 include $(depend)
    79 include $(depend)
    83 
    80 
    84 $(objects)/$(TARGET): $(REVISION) $(OBJECTS)
    81 $(objects)/$(TARGET): $(OBJECTS)
    85 	$(LIBTOOL) --mode=link $(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
    82 	$(LIBTOOL) --mode=link $(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
    86 
    83 
    87 $(objects)/$(SDLMAIN_TARGET): $(SDLMAIN_OBJECTS)
    84 $(objects)/$(SDLMAIN_TARGET): $(SDLMAIN_OBJECTS)
    88 	$(AR) cru $@ $(SDLMAIN_OBJECTS)
    85 	$(AR) cru $@ $(SDLMAIN_OBJECTS)
    89 	$(RANLIB) $@
    86 	$(RANLIB) $@