3 # Get settings from the output of configure by running it to generate
4 # Makefile.config if it doesn't exist yet.
6 # If Makefile.config doesn't exist, then srcdir won't be
7 # set. Conditionally set it (assuming a plain srcdir build) so that
8 # the rule to generate Makefile.config can actually work.
11 include Makefile.config
12 Makefile.config: $(srcdir)/configure
13 ifeq ($(configure_options),)
15 @echo "Note: Calling ./configure with no command-line arguments. This is often fine,"
16 @echo " but if you want to specify any arguments (such as an alternate prefix"
17 @echo " into which to install), call ./configure explicitly and then make again."
18 @echo " See \"./configure --help\" for more details."
21 $(srcdir)/configure $(configure_options)
23 TARGETS = glenv libglenv.so
27 GLENV_CFLAGS = $(CFLAGS) $(WARN_CFLAGS) $(GLAZE_CFLAGS)
28 GLENV_LDFLAGS = $(GLAZE_LDFLAGS)
31 $(CC) $(GLENV_CFLAGS) $(GLENV_LDFLAGS) -o $@ $<
34 $(CC) $(GLENV_CFLAGS) $(GLENV_LDFLAGS) -fPIC -shared -Wl,-Bsymbolic -o $@ $<