X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2FMakefile.am;h=d1f44ce7d8cd8d8326275d7734e2b1ae9f97dc2f;hb=69a45a61f22927a434640c85ae88664c45ea1c6d;hp=533e84cab43a71d26914383a95490e2bbc13bcc4;hpb=26e7ac536528b09b19d9b5b1f99b7295097ef643;p=freeglut diff --git a/src/Makefile.am b/src/Makefile.am index 533e84c..d1f44ce 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -10,7 +10,7 @@ lib_LTLIBRARIES = lib@LIBRARY@.la # noinst_HEADERS = Common/freeglut_internal.h Common/freeglut_teapot_data.h -EXTRA_DIST = freeglutdll.def +EXTRA_DIST = Common/freeglutdll.def # # Those source files build the freeglut library @@ -20,7 +20,6 @@ lib@LIBRARY@_la_SOURCES = Common/freeglut_callbacks.c \ Common/freeglut_display.c \ Common/freeglut_ext.c \ Common/freeglut_font.c \ - Common/freeglut_glutfont_definitions.c \ Common/freeglut_font_data.c \ Common/freeglut_stroke_roman.c \ Common/freeglut_stroke_mono_roman.c \ @@ -38,22 +37,47 @@ lib@LIBRARY@_la_SOURCES = Common/freeglut_callbacks.c \ Common/freeglut_structure.c \ Common/freeglut_teapot.c \ Common/freeglut_videoresize.c \ - Common/freeglut_window.c \ - Common/freeglut_xinput.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 + Common/freeglut_window.c + +if TARGET_HOST_MS_WINDOWS +lib@LIBRARY@_la_SOURCES += \ + Common/xparsegeometry_repl.c \ + Common/xparsegeometry_repl.h \ + 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 # # Additional linker flags