Add base Android and EGL code
[freeglut] / src / Makefile.am
1 ## Process this file with automake to produce Makefile.im
2
3 #
4 # The library we want to build
5 #
6 lib_LTLIBRARIES = lib@LIBRARY@.la
7
8 #
9 # Headers and extra stuff we want to distribute
10 #
11 noinst_HEADERS = Common/freeglut_internal.h Common/freeglut_teapot_data.h
12
13 EXTRA_DIST = Common/freeglutdll.def
14
15 #
16 # Those source files build the freeglut library
17 #
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
41
42 if TARGET_HOST_MS_WINDOWS
43 lib@LIBRARY@_la_SOURCES += \
44         Common/xparsegeometry_repl.c \
45         Common/xparsegeometry_repl.h \
46         mswin/freeglut_cursor_mswin.c \
47         mswin/freeglut_display_mswin.c \
48         mswin/freeglut_ext_mswin.c \
49         mswin/freeglut_gamemode_mswin.c \
50         mswin/freeglut_init_mswin.c \
51         mswin/freeglut_input_devices_mswin.c \
52         mswin/freeglut_internal_mswin.h \
53         mswin/freeglut_joystick_mswin.c \
54         mswin/freeglut_main_mswin.c \
55         mswin/freeglut_menu_mswin.c \
56         mswin/freeglut_spaceball_mswin.c \
57         mswin/freeglut_state_mswin.c \
58         mswin/freeglut_structure_mswin.c \
59         mswin/freeglut_window_mswin.c
60 endif
61
62 if TARGET_HOST_POSIX_X11
63 lib@LIBRARY@_la_SOURCES += \
64         x11/freeglut_cursor_x11.c \
65         x11/freeglut_display_x11.c \
66         x11/freeglut_ext_x11.c \
67         x11/freeglut_gamemode_x11.c \
68         x11/freeglut_glutfont_definitions_x11.c \
69         x11/freeglut_init_x11.c \
70         x11/freeglut_input_devices_x11.c \
71         x11/freeglut_internal_x11.h \
72         x11/freeglut_joystick_x11.c \
73         x11/freeglut_main_x11.c \
74         x11/freeglut_menu_x11.c \
75         x11/freeglut_spaceball_x11.c \
76         x11/freeglut_state_x11.c \
77         x11/freeglut_structure_x11.c \
78         x11/freeglut_window_x11.c \
79         x11/freeglut_xinput_x11.c
80 endif
81
82 #
83 # Additional linker flags
84 #        
85 lib@LIBRARY@_la_LIBADD  = $(GL_LIBS) $(X_LIBS) $(LIBM) $(LIBUSBHID)
86 lib@LIBRARY@_la_LDFLAGS = $(VERSION_INFO) -no-undefined
87 lib@LIBRARY@_la_CFLAGS  = $(GL_FLAGS) $(X_CFLAGS) $(EXPORT_FLAGS)
88 lib@LIBRARY@_la_CPPFLAGS= -I$(top_srcdir)/include -I$(top_srcdir)/src/Common
89
90 #
91 # End of file
92 #