1 ## Process this file with automake to produce Makefile.im
4 # The library we want to build
6 lib_LTLIBRARIES = lib@LIBRARY@.la
9 # Headers and extra stuff we want to distribute
11 noinst_HEADERS = Common/freeglut_internal.h Common/freeglut_teapot_data.h
13 EXTRA_DIST = Common/freeglutdll.def
16 # Those source files build the freeglut library
18 lib@LIBRARY@_la_SOURCES = \
19 Common/freeglut_callbacks.c \
20 Common/freeglut_cursor.c \
21 Common/freeglut_display.c \
22 Common/freeglut_ext.c \
23 Common/freeglut_font_data.c \
24 Common/freeglut_gamemode.c \
25 Common/freeglut_input_devices.c \
26 Common/freeglut_stroke_roman.c \
27 Common/freeglut_stroke_mono_roman.c \
28 Common/freeglut_init.c \
29 Common/freeglut_spaceball.c \
30 Common/freeglut_joystick.c \
31 Common/freeglut_main.c \
32 Common/freeglut_misc.c \
33 Common/freeglut_overlay.c \
34 Common/freeglut_state.c \
35 Common/freeglut_structure.c \
36 Common/freeglut_videoresize.c \
37 Common/freeglut_window.c
39 # TODO: uses OpenGL non-ES functions:
40 if !TARGET_HOST_ANDROID
41 lib@LIBRARY@_la_SOURCES += \
42 Common/freeglut_font.c \
43 Common/freeglut_geometry.c \
44 Common/freeglut_menu.c \
45 Common/freeglut_teapot.c
48 if TARGET_HOST_MS_WINDOWS
49 lib@LIBRARY@_la_SOURCES += \
50 Common/xparsegeometry_repl.c \
51 Common/xparsegeometry_repl.h \
52 mswin/freeglut_cursor_mswin.c \
53 mswin/freeglut_display_mswin.c \
54 mswin/freeglut_ext_mswin.c \
55 mswin/freeglut_gamemode_mswin.c \
56 mswin/freeglut_init_mswin.c \
57 mswin/freeglut_input_devices_mswin.c \
58 mswin/freeglut_internal_mswin.h \
59 mswin/freeglut_joystick_mswin.c \
60 mswin/freeglut_main_mswin.c \
61 mswin/freeglut_menu_mswin.c \
62 mswin/freeglut_spaceball_mswin.c \
63 mswin/freeglut_state_mswin.c \
64 mswin/freeglut_structure_mswin.c \
65 mswin/freeglut_window_mswin.c
68 if TARGET_HOST_POSIX_X11
69 lib@LIBRARY@_la_SOURCES += \
70 x11/freeglut_cursor_x11.c \
71 x11/freeglut_display_x11.c \
72 x11/freeglut_ext_x11.c \
73 x11/freeglut_gamemode_x11.c \
74 x11/freeglut_glutfont_definitions_x11.c \
75 x11/freeglut_init_x11.c \
76 x11/freeglut_input_devices_x11.c \
77 x11/freeglut_internal_x11.h \
78 x11/freeglut_joystick_x11.c \
79 x11/freeglut_main_x11.c \
80 x11/freeglut_menu_x11.c \
81 x11/freeglut_spaceball_x11.c \
82 x11/freeglut_state_x11.c \
83 x11/freeglut_structure_x11.c \
84 x11/freeglut_window_x11.c \
85 x11/freeglut_xinput_x11.c
88 if TARGET_HOST_ANDROID
89 lib@LIBRARY@_la_SOURCES += \
90 Common/xparsegeometry_repl.c \
91 Common/xparsegeometry_repl.h \
92 egl/freeglut_internal_egl.h \
93 egl/freeglut_display_egl.c \
94 egl/freeglut_init_egl.c \
95 egl/freeglut_structure_egl.c \
96 egl/freeglut_window_egl.c \
97 android/native_app_glue/android_native_app_glue.c \
98 android/native_app_glue/android_native_app_glue.h \
99 android/freeglut_runtime_android.c \
100 android/freeglut_gamemode_android.c \
101 android/freeglut_input_devices_android.c \
102 android/freeglut_joystick_android.c \
103 android/freeglut_main_android.c \
104 android/freeglut_spaceball_android.c \
105 android/freeglut_state_android.c \
106 android/freeglut_window_android.c \
107 android/opengles_stubs.c \
108 android/freeglut_internal_android.h
113 # Additional linker flags
115 lib@LIBRARY@_la_LIBADD = $(GL_LIBS) $(X_LIBS) $(LIBM) $(LIBUSBHID)
116 lib@LIBRARY@_la_LDFLAGS = $(VERSION_INFO) -no-undefined
117 lib@LIBRARY@_la_CFLAGS = $(GL_FLAGS) $(X_CFLAGS) $(EXPORT_FLAGS)
118 lib@LIBRARY@_la_CPPFLAGS= -I$(top_srcdir)/include -I$(top_srcdir)/src/Common