]> Pileus Git - grits/blob - src/plugins/Makefile.am
5fc085d529f4c679c092d78c262b101cb23244f2
[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) $(GL_CFLAGS) $(SOUP_CFLAGS)
5 AM_LDFLAGS  = -shared -module -avoid-version
6 LIBS        = $(top_srcdir)/src/libgrits.la
7
8 if SYS_WIN
9 AM_LDFLAGS += -no-undefined
10 endif
11 if !SYS_MAC
12 AM_LDFLAGS += -Wl,--as-needed
13 endif
14
15 pluginsdir  = "$(libdir)/$(GRITS_SUBDIR)"
16
17 plugins_LTLIBRARIES = sat.la elev.la map.la env.la test.la
18 sat_la_SOURCES      = sat.c  sat.h
19 elev_la_SOURCES     = elev.c elev.h
20 map_la_SOURCES      = map.c  map.h
21 env_la_SOURCES      = env.c  env.h
22 test_la_SOURCES     = test.c test.h
23
24 env_la_CPPFLAGS     = $(AM_CPPFLAGS)
25 env_la_LDFLAGS      = $(AM_LDFLAGS)
26
27 if HAVE_GLUT
28 noinst_LTLIBRARIES  = teapot.la
29 teapot_la_SOURCES   = \
30         $(top_srcdir)/examples/plugin/teapot.c \
31         $(top_srcdir)/examples/plugin/teapot.h
32 teapot_la_LDFLAGS   = $(AM_LDFLAGS) -lglut -rpath $(libdir) # I hate you libtool
33 env_la_CPPFLAGS    += -DHAVE_GLUT
34 env_la_LDFLAGS     += -lglut
35 endif
36
37 test:
38         ( cd ../; make test )