]> Pileus Git - grits/blob - src/plugins/Makefile.am
d713c3580ec5a38b8548b980a36c478a0426125d
[grits] / src / plugins / Makefile.am
1 MAINTAINERCLEANFILES = Makefile.in
2
3 AM_CFLAGS   = -Wall --std=gnu99 -I$(top_srcdir)/src
4 AM_CPPFLAGS = $(GLIB_CFLAGS) $(GTK_CFLAGS) $(SOUP_CFLAGS)
5 AM_LDFLAGS  = -shared -module -avoid-version -Wl,--as-needed
6 LIBS        = $(top_srcdir)/src/libgrits.la
7
8 pluginsdir  = "$(libdir)/$(GRITS_SUBDIR)"
9
10 plugins_LTLIBRARIES = sat.la elev.la map.la env.la test.la
11 sat_la_SOURCES      = sat.c  sat.h
12 elev_la_SOURCES     = elev.c elev.h
13 map_la_SOURCES      = map.c  map.h
14 env_la_SOURCES      = env.c  env.h
15 test_la_SOURCES     = test.c test.h
16
17 if WIN32
18 AM_LDFLAGS += -no-undefined
19 endif
20
21 if HAVE_GLUT
22 noinst_LTLIBRARIES  = teapot.la
23 teapot_la_SOURCES   = \
24         $(top_srcdir)/examples/plugin/teapot.c \
25         $(top_srcdir)/examples/plugin/teapot.h
26 teapot_la_LDFLAGS   = $(AM_LDFLAGS) -lglut -rpath $(libdir) # I hate you libtool
27 endif
28
29 test:
30         ( cd ../; make test )