- Common/freeglut_window.c \
- x11/freeglut_cursor_x11.c \
- x11/freeglut_display_x11.c \
- x11/freeglut_ext_x11.c \
- x11/freeglut_gamemode_x11.c \
- x11/freeglut_glutfont_definitions_x11.c \
- x11/freeglut_init_x11.c \
- x11/freeglut_input_devices_x11.c \
- x11/freeglut_joystick_x11.c \
- x11/freeglut_main_x11.c \
- x11/freeglut_menu_x11.c \
- x11/freeglut_spaceball_x11.c \
- x11/freeglut_state_x11.c \
- x11/freeglut_structure_x11.c \
- x11/freeglut_window_x11.c \
- x11/freeglut_xinput_x11.c
+ Common/freeglut_window.c
+
+if TARGET_HOST_MS_WINDOWS
+lib@LIBRARY@_la_SOURCES += \
+ mswin/freeglut_cursor_mswin.c \
+ mswin/freeglut_display_mswin.c \
+ mswin/freeglut_ext_mswin.c \
+ mswin/freeglut_gamemode_mswin.c \
+ mswin/freeglut_init_mswin.c \
+ mswin/freeglut_input_devices_mswin.c \
+ mswin/freeglut_internal_mswin.h \
+ mswin/freeglut_joystick_mswin.c \
+ mswin/freeglut_main_mswin.c \
+ mswin/freeglut_menu_mswin.c \
+ mswin/freeglut_spaceball_mswin.c \
+ mswin/freeglut_state_mswin.c \
+ mswin/freeglut_structure_mswin.c \
+ mswin/freeglut_window_mswin.c
+endif
+
+if TARGET_HOST_POSIX_X11
+lib@LIBRARY@_la_SOURCES += \
+ x11/freeglut_cursor_x11.c \
+ x11/freeglut_display_x11.c \
+ x11/freeglut_ext_x11.c \
+ x11/freeglut_gamemode_x11.c \
+ x11/freeglut_glutfont_definitions_x11.c \
+ x11/freeglut_init_x11.c \
+ x11/freeglut_input_devices_x11.c \
+ x11/freeglut_internal_x11.h \
+ x11/freeglut_joystick_x11.c \
+ x11/freeglut_main_x11.c \
+ x11/freeglut_menu_x11.c \
+ x11/freeglut_spaceball_x11.c \
+ x11/freeglut_state_x11.c \
+ x11/freeglut_structure_x11.c \
+ x11/freeglut_window_x11.c \
+ x11/freeglut_xinput_x11.c
+endif