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 = Common/freeglut_callbacks.c \
19 Common/freeglut_cursor.c \
20 Common/freeglut_display.c \
21 Common/freeglut_ext.c \
22 Common/freeglut_font.c \
23 Common/freeglut_font_data.c \
24 Common/freeglut_stroke_roman.c \
25 Common/freeglut_stroke_mono_roman.c \
26 Common/freeglut_gamemode.c \
27 Common/freeglut_geometry.c \
28 Common/freeglut_init.c \
29 Common/freeglut_input_devices.c \
30 Common/freeglut_spaceball.c \
31 Common/freeglut_joystick.c \
32 Common/freeglut_main.c \
33 Common/freeglut_menu.c \
34 Common/freeglut_misc.c \
35 Common/freeglut_overlay.c \
36 Common/freeglut_state.c \
37 Common/freeglut_structure.c \
38 Common/freeglut_teapot.c \
39 Common/freeglut_videoresize.c \
40 Common/freeglut_window.c
42 if TARGET_HOST_MS_WINDOWS
43 lib@LIBRARY@_la_SOURCES += \
44 mswin/freeglut_cursor_mswin.c \
45 mswin/freeglut_display_mswin.c \
46 mswin/freeglut_ext_mswin.c \
47 mswin/freeglut_gamemode_mswin.c \
48 mswin/freeglut_init_mswin.c \
49 mswin/freeglut_input_devices_mswin.c \
50 mswin/freeglut_internal_mswin.h \
51 mswin/freeglut_joystick_mswin.c \
52 mswin/freeglut_main_mswin.c \
53 mswin/freeglut_menu_mswin.c \
54 mswin/freeglut_spaceball_mswin.c \
55 mswin/freeglut_state_mswin.c \
56 mswin/freeglut_structure_mswin.c \
57 mswin/freeglut_window_mswin.c
60 if TARGET_HOST_POSIX_X11
61 lib@LIBRARY@_la_SOURCES += \
62 x11/freeglut_cursor_x11.c \
63 x11/freeglut_display_x11.c \
64 x11/freeglut_ext_x11.c \
65 x11/freeglut_gamemode_x11.c \
66 x11/freeglut_glutfont_definitions_x11.c \
67 x11/freeglut_init_x11.c \
68 x11/freeglut_input_devices_x11.c \
69 x11/freeglut_internal_x11.h \
70 x11/freeglut_joystick_x11.c \
71 x11/freeglut_main_x11.c \
72 x11/freeglut_menu_x11.c \
73 x11/freeglut_spaceball_x11.c \
74 x11/freeglut_state_x11.c \
75 x11/freeglut_structure_x11.c \
76 x11/freeglut_window_x11.c \
77 x11/freeglut_xinput_x11.c
81 # Additional linker flags
83 lib@LIBRARY@_la_LIBADD = $(GL_LIBS) $(X_LIBS) $(LIBM) $(LIBUSBHID)
84 lib@LIBRARY@_la_LDFLAGS = $(VERSION_INFO) -no-undefined
85 lib@LIBRARY@_la_CFLAGS = $(GL_FLAGS) $(X_CFLAGS) $(EXPORT_FLAGS)
86 lib@LIBRARY@_la_CPPFLAGS= -I$(top_srcdir)/include -I$(top_srcdir)/src/Common