Makefile.am 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. ACLOCAL_AMFLAGS=-I m4
  2. AM_CPPFLAGS = -I$(top_srcdir)/src \
  3. -I$(top_srcdir)/src/glbindings
  4. #if WITH_MATH3D
  5. AM_CPPFLAGS += -I$(top_srcdir)/src/math
  6. #endif
  7. #if WITH_TEXT
  8. AM_CPPFLAGS += -I$(top_srcdir)/src/text
  9. #endif
  10. AM_CFLAGS = -std=c11
  11. lib_LTLIBRARIES = libglplatform.la
  12. libglplatform_la_LIBADD=$(FREETYPE2_LIBS)
  13. libglplatform_la_CFLAGS=$(FREETYPE2_CFLAGS) $(AM_CFLAGS)
  14. libglplatform_la_LDFLAGS = -version-info 4:0:0 -no-undefined
  15. libglplatform_la_SOURCES = src/glbindings/glcore.c src/math/math3d.c src/text/gltext.c
  16. if WINDOWS
  17. libglplatform_la_SOURCES += src/win32.c src/glbindings/wgl.c
  18. libglplatform_la_LIBADD += -lkernel32 -luser32 -lopengl32 -lgdi32
  19. libglplatform_la_CFLAGS += -DGLPLATFORM_ENABLE_WGL_ARB_create_context \
  20. -DGLPLATFORM_ENABLE_WGL_ARB_create_context_profile \
  21. -DGLPLATFORM_ENABLE_WGL_ARB_make_current_read
  22. endif
  23. if LINUX_GNU
  24. libglplatform_la_SOURCES += src/linux.c src/glbindings/glx.c
  25. libglplatform_la_CFLAGS += -DGLPLATFORM_ENABLE_GLX_ARB_create_context \
  26. -DGLPLATFORM_ENABLE_GLX_ARB_create_context_profile
  27. endif
  28. noinst_PROGRAMS = simple_window text_render
  29. simple_window_SOURCES = src/examples/simple_window.c
  30. simple_window_LDADD = libglplatform.la
  31. simple_window_CFLAGS = $(AM_CFLAGS)
  32. text_render_SOURCES = src/examples/text_render.c
  33. text_render_CFLAGS = -DTTF_PATH=\"${abs_srcdir}/src/examples/ttf/\" $(AM_CFLAGS)
  34. text_render_LDADD = libglplatform.la
  35. pkginclude_HEADERS = src/glbindings/glcore.h \
  36. src/glplatform.h \
  37. src/math/math3d.h \
  38. src/text/gltext.h
  39. if LINUX_GNU
  40. pkginclude_HEADERS += src/glbindings/glx.h
  41. endif
  42. if WINDOWS
  43. pkginclude_HEADERS += src/glbindings/wgl.h
  44. endif