EXTRA_DIST = CallbackMaker.c CallbackMaker.dsp
noinst_PROGRAMS = CallbackMaker
CallbackMaker_SOURCES = CallbackMaker.c
-CallbackMaker_LDFLAGS = -export-dynamic ../../../src/lib@LIBRARY@.la
+CallbackMaker_LDFLAGS = -export-dynamic
+CallbackMaker_LDADD = ../../../src/lib@LIBRARY@.la $(GL_LIBS)
CallbackMaker_CFLAGS = -I$(top_srcdir)/include $(X_CFLAGS)
EXTRA_DIST = Fractals.dsp fractals.c fractals.dat
noinst_PROGRAMS = fractals
fractals_SOURCES = fractals.c
-fractals_LDFLAGS = -export-dynamic ../../../src/lib@LIBRARY@.la
+fractals_LDFLAGS = -export-dynamic
+fractals_LDADD = ../../../src/lib@LIBRARY@.la $(GL_LIBS)
fractals_CFLAGS = -I$(top_srcdir)/include $(X_CFLAGS)
EXTRA_DIST = Fractals_random.dsp fractals.dat fractals_random.c
-
noinst_PROGRAMS = fractals_random
fractals_random_SOURCES = fractals_random.c
-fractals_random_LDFLAGS = -export-dynamic ../../../src/lib@LIBRARY@.la
+fractals_random_LDFLAGS = -export-dynamic
+fractals_random_LDADD = ../../../src/lib@LIBRARY@.la $(GL_LIBS)
fractals_random_CFLAGS = -I$(top_srcdir)/include $(X_CFLAGS)
EXTRA_DIST = lorenz.c lorenz.dsp
-
noinst_PROGRAMS = lorenz
lorenz_SOURCES = lorenz.c
-lorenz_LDFLAGS = -export-dynamic ../../../src/lib@LIBRARY@.la
+lorenz_LDFLAGS = -export-dynamic
+lorenz_LDADD = ../../../src/lib@LIBRARY@.la $(GL_LIBS)
lorenz_CFLAGS = -I$(top_srcdir)/include $(X_CFLAGS)
EXTRA_DIST = one.c one.dsp
noinst_PROGRAMS = one
one_SOURCES = one.c
-one_LDFLAGS = -export-dynamic ../../../src/lib@LIBRARY@.la
+one_LDFLAGS = -export-dynamic
+one_LDADD = ../../../src/lib@LIBRARY@.la $(GL_LIBS)
one_CFLAGS = -I$(top_srcdir)/include $(X_CFLAGS)
EXTRA_DIST = shapes.c shapes.dsp
noinst_PROGRAMS = shapes
shapes_SOURCES = shapes.c
-shapes_LDFLAGS = -export-dynamic ../../../src/lib@LIBRARY@.la
+shapes_LDFLAGS = -export-dynamic
+shapes_LDADD = ../../../src/lib@LIBRARY@.la $(GL_LIBS)
shapes_CFLAGS = -I$(top_srcdir)/include $(X_CFLAGS)
EXTRA_DIST = smooth_opengl3.c smooth_opengl3.dsp
noinst_PROGRAMS = smooth_opengl3
smooth_opengl3_SOURCES = smooth_opengl3.c
-smooth_opengl3_LDFLAGS = -export-dynamic ../../../src/lib@LIBRARY@.la
+smooth_opengl3_LDFLAGS = -export-dynamic
+smooth_opengl3_LDADD = ../../../src/lib@LIBRARY@.la $(GL_LIBS)
smooth_opengl3_CFLAGS = -I$(top_srcdir)/include $(X_CFLAGS)
EXTRA_DIST = spaceball.c vmath.c vmath.h vmath.inl
-
noinst_PROGRAMS = spaceball
spaceball_SOURCES = spaceball.c vmath.c
-spaceball_LDFLAGS = -export-dynamic ../../../src/lib@LIBRARY@.la
-spaceball_CFLAGS = -I$(top_srcdir)/include $(X_CFLAGS)
\ No newline at end of file
+spaceball_LDFLAGS = -export-dynamic
+spaceball_LDADD = ../../../src/lib@LIBRARY@.la $(GL_LIBS)
+spaceball_CFLAGS = -I$(top_srcdir)/include $(X_CFLAGS)
EXTRA_DIST = subwin.c subwin.dsp
noinst_PROGRAMS = subwin
subwin_SOURCES = subwin.c
-subwin_LDFLAGS = -export-dynamic ../../../src/lib@LIBRARY@.la
+subwin_LDFLAGS = -export-dynamic
+subwin_LDADD = ../../../src/lib@LIBRARY@.la $(GL_LIBS)
subwin_CFLAGS = -I$(top_srcdir)/include $(X_CFLAGS)