Makefile.am 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # Makefile.am for the SDL truetype font loading library and viewer
  2. lib_LTLIBRARIES = libSDL2_ttf.la
  3. libSDL2_ttfincludedir = $(includedir)/SDL2
  4. libSDL2_ttfinclude_HEADERS = \
  5. SDL_ttf.h
  6. libSDL2_ttf_la_SOURCES = \
  7. SDL_ttf.c
  8. EXTRA_DIST = \
  9. Android.mk \
  10. debian \
  11. external \
  12. version.rc \
  13. VisualC \
  14. Xcode \
  15. Xcode-iOS \
  16. SDL2_ttf.spec \
  17. SDL2_ttf.spec.in \
  18. gcc-fat.sh \
  19. autogen.sh \
  20. $(srcdir)/*.txt
  21. if USE_VERSION_RC
  22. libSDL2_ttf_la_LDFLAGS = \
  23. -no-undefined \
  24. -release $(LT_RELEASE) \
  25. -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -Wl,version.o
  26. libSDL2_ttf_la_DEPENDENCIES = version.o
  27. else
  28. libSDL2_ttf_la_LDFLAGS = \
  29. -no-undefined \
  30. -release $(LT_RELEASE) \
  31. -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
  32. endif
  33. libSDL2_ttf_la_LIBADD = @MATHLIB@
  34. pkgconfigdir = $(libdir)/pkgconfig
  35. pkgconfig_DATA = SDL2_ttf.pc
  36. %.o : %.rc
  37. $(WINDRES) $< $@
  38. noinst_PROGRAMS = showfont glfont
  39. showfont_LDADD = libSDL2_ttf.la
  40. glfont_LDADD = libSDL2_ttf.la @GL_LIBS@ @MATHLIB@
  41. # Rule to build tar-gzipped distribution package
  42. $(PACKAGE)-$(VERSION).tar.gz: distcheck
  43. # Rule to build RPM distribution package
  44. rpm: $(PACKAGE)-$(VERSION).tar.gz
  45. rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz