aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2021-08-10 17:08:44 +0200
committerWojtek Kosior <koszko@koszko.org>2021-08-10 20:56:48 +0200
commit78e4ddc4b34ac51da55e33bb2c75af573d63caff (patch)
tree1b25b59efb2c83224cda5e5f64f9adc33183b3e1 /src
parent3a429abe50042803ce717595f60e13bebd4fc381 (diff)
downloadhydrilla-78e4ddc4b34ac51da55e33bb2c75af573d63caff.tar.gz
hydrilla-78e4ddc4b34ac51da55e33bb2c75af573d63caff.zip
make hydrilla content dir depend on localstatedir and put a readme there
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am1
-rw-r--r--src/Makefile.in166
-rw-r--r--src/main.c2
3 files changed, 138 insertions, 31 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index eef89a0..88dd22a 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -11,3 +11,4 @@ hydrilla_SOURCES = \
scriptbase.h \
string_buf.h
hydrilla_LDFLAGS = -lmicrohttpd -lcjson
+hydrilla_CPPFLAGS = -DCONTENTDIR='"$(contentdir)"'
diff --git a/src/Makefile.in b/src/Makefile.in
index 8faefa7..3bc421b 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -99,10 +99,11 @@ CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
am__installdirs = "$(DESTDIR)$(bindir)"
PROGRAMS = $(bin_PROGRAMS)
-am_hydrilla_OBJECTS = hashtable.$(OBJEXT) main.$(OBJEXT) \
- scriptbase_build.$(OBJEXT) scriptbase_json_query.$(OBJEXT) \
- scriptbase_query.$(OBJEXT) serve.$(OBJEXT) \
- string_buf.$(OBJEXT)
+am_hydrilla_OBJECTS = hydrilla-hashtable.$(OBJEXT) \
+ hydrilla-main.$(OBJEXT) hydrilla-scriptbase_build.$(OBJEXT) \
+ hydrilla-scriptbase_json_query.$(OBJEXT) \
+ hydrilla-scriptbase_query.$(OBJEXT) hydrilla-serve.$(OBJEXT) \
+ hydrilla-string_buf.$(OBJEXT)
hydrilla_OBJECTS = $(am_hydrilla_OBJECTS)
hydrilla_LDADD = $(LDADD)
hydrilla_LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(hydrilla_LDFLAGS) \
@@ -122,12 +123,18 @@ am__v_at_1 =
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
depcomp = $(SHELL) $(top_srcdir)/depcomp
am__maybe_remake_depfiles = depfiles
-am__depfiles_remade = ./$(DEPDIR)/hashtable.Po ./$(DEPDIR)/main.Po \
- ./$(DEPDIR)/scriptbase_build.Po \
- ./$(DEPDIR)/scriptbase_json_query.Po \
- ./$(DEPDIR)/scriptbase_query.Po ./$(DEPDIR)/serve.Po \
- ./$(DEPDIR)/string_buf.Po
+am__depfiles_remade = ./$(DEPDIR)/hydrilla-hashtable.Po \
+ ./$(DEPDIR)/hydrilla-main.Po \
+ ./$(DEPDIR)/hydrilla-scriptbase_build.Po \
+ ./$(DEPDIR)/hydrilla-scriptbase_json_query.Po \
+ ./$(DEPDIR)/hydrilla-scriptbase_query.Po \
+ ./$(DEPDIR)/hydrilla-serve.Po \
+ ./$(DEPDIR)/hydrilla-string_buf.Po
am__mv = mv -f
+AM_V_lt = $(am__v_lt_@AM_V@)
+am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
+am__v_lt_0 = --silent
+am__v_lt_1 =
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
AM_V_CC = $(am__v_CC_@AM_V@)
@@ -266,6 +273,7 @@ hydrilla_SOURCES = \
string_buf.h
hydrilla_LDFLAGS = -lmicrohttpd -lcjson
+hydrilla_CPPFLAGS = -DCONTENTDIR='"$(contentdir)"'
all: all-am
.SUFFIXES:
@@ -352,13 +360,13 @@ mostlyclean-compile:
distclean-compile:
-rm -f *.tab.c
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hashtable.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scriptbase_build.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scriptbase_json_query.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/scriptbase_query.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/serve.Po@am__quote@ # am--include-marker
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/string_buf.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hydrilla-hashtable.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hydrilla-main.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hydrilla-scriptbase_build.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hydrilla-scriptbase_json_query.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hydrilla-scriptbase_query.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hydrilla-serve.Po@am__quote@ # am--include-marker
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hydrilla-string_buf.Po@am__quote@ # am--include-marker
$(am__depfiles_remade):
@$(MKDIR_P) $(@D)
@@ -380,6 +388,104 @@ am--depfiles: $(am__depfiles_remade)
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
+hydrilla-hashtable.o: hashtable.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hydrilla_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT hydrilla-hashtable.o -MD -MP -MF $(DEPDIR)/hydrilla-hashtable.Tpo -c -o hydrilla-hashtable.o `test -f 'hashtable.c' || echo '$(srcdir)/'`hashtable.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/hydrilla-hashtable.Tpo $(DEPDIR)/hydrilla-hashtable.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='hashtable.c' object='hydrilla-hashtable.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hydrilla_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o hydrilla-hashtable.o `test -f 'hashtable.c' || echo '$(srcdir)/'`hashtable.c
+
+hydrilla-hashtable.obj: hashtable.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hydrilla_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT hydrilla-hashtable.obj -MD -MP -MF $(DEPDIR)/hydrilla-hashtable.Tpo -c -o hydrilla-hashtable.obj `if test -f 'hashtable.c'; then $(CYGPATH_W) 'hashtable.c'; else $(CYGPATH_W) '$(srcdir)/hashtable.c'; fi`
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/hydrilla-hashtable.Tpo $(DEPDIR)/hydrilla-hashtable.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='hashtable.c' object='hydrilla-hashtable.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hydrilla_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o hydrilla-hashtable.obj `if test -f 'hashtable.c'; then $(CYGPATH_W) 'hashtable.c'; else $(CYGPATH_W) '$(srcdir)/hashtable.c'; fi`
+
+hydrilla-main.o: main.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hydrilla_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT hydrilla-main.o -MD -MP -MF $(DEPDIR)/hydrilla-main.Tpo -c -o hydrilla-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/hydrilla-main.Tpo $(DEPDIR)/hydrilla-main.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='main.c' object='hydrilla-main.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hydrilla_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o hydrilla-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c
+
+hydrilla-main.obj: main.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hydrilla_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT hydrilla-main.obj -MD -MP -MF $(DEPDIR)/hydrilla-main.Tpo -c -o hydrilla-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/hydrilla-main.Tpo $(DEPDIR)/hydrilla-main.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='main.c' object='hydrilla-main.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hydrilla_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o hydrilla-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
+
+hydrilla-scriptbase_build.o: scriptbase_build.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hydrilla_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT hydrilla-scriptbase_build.o -MD -MP -MF $(DEPDIR)/hydrilla-scriptbase_build.Tpo -c -o hydrilla-scriptbase_build.o `test -f 'scriptbase_build.c' || echo '$(srcdir)/'`scriptbase_build.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/hydrilla-scriptbase_build.Tpo $(DEPDIR)/hydrilla-scriptbase_build.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='scriptbase_build.c' object='hydrilla-scriptbase_build.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hydrilla_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o hydrilla-scriptbase_build.o `test -f 'scriptbase_build.c' || echo '$(srcdir)/'`scriptbase_build.c
+
+hydrilla-scriptbase_build.obj: scriptbase_build.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hydrilla_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT hydrilla-scriptbase_build.obj -MD -MP -MF $(DEPDIR)/hydrilla-scriptbase_build.Tpo -c -o hydrilla-scriptbase_build.obj `if test -f 'scriptbase_build.c'; then $(CYGPATH_W) 'scriptbase_build.c'; else $(CYGPATH_W) '$(srcdir)/scriptbase_build.c'; fi`
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/hydrilla-scriptbase_build.Tpo $(DEPDIR)/hydrilla-scriptbase_build.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='scriptbase_build.c' object='hydrilla-scriptbase_build.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hydrilla_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o hydrilla-scriptbase_build.obj `if test -f 'scriptbase_build.c'; then $(CYGPATH_W) 'scriptbase_build.c'; else $(CYGPATH_W) '$(srcdir)/scriptbase_build.c'; fi`
+
+hydrilla-scriptbase_json_query.o: scriptbase_json_query.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hydrilla_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT hydrilla-scriptbase_json_query.o -MD -MP -MF $(DEPDIR)/hydrilla-scriptbase_json_query.Tpo -c -o hydrilla-scriptbase_json_query.o `test -f 'scriptbase_json_query.c' || echo '$(srcdir)/'`scriptbase_json_query.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/hydrilla-scriptbase_json_query.Tpo $(DEPDIR)/hydrilla-scriptbase_json_query.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='scriptbase_json_query.c' object='hydrilla-scriptbase_json_query.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hydrilla_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o hydrilla-scriptbase_json_query.o `test -f 'scriptbase_json_query.c' || echo '$(srcdir)/'`scriptbase_json_query.c
+
+hydrilla-scriptbase_json_query.obj: scriptbase_json_query.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hydrilla_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT hydrilla-scriptbase_json_query.obj -MD -MP -MF $(DEPDIR)/hydrilla-scriptbase_json_query.Tpo -c -o hydrilla-scriptbase_json_query.obj `if test -f 'scriptbase_json_query.c'; then $(CYGPATH_W) 'scriptbase_json_query.c'; else $(CYGPATH_W) '$(srcdir)/scriptbase_json_query.c'; fi`
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/hydrilla-scriptbase_json_query.Tpo $(DEPDIR)/hydrilla-scriptbase_json_query.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='scriptbase_json_query.c' object='hydrilla-scriptbase_json_query.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hydrilla_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o hydrilla-scriptbase_json_query.obj `if test -f 'scriptbase_json_query.c'; then $(CYGPATH_W) 'scriptbase_json_query.c'; else $(CYGPATH_W) '$(srcdir)/scriptbase_json_query.c'; fi`
+
+hydrilla-scriptbase_query.o: scriptbase_query.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hydrilla_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT hydrilla-scriptbase_query.o -MD -MP -MF $(DEPDIR)/hydrilla-scriptbase_query.Tpo -c -o hydrilla-scriptbase_query.o `test -f 'scriptbase_query.c' || echo '$(srcdir)/'`scriptbase_query.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/hydrilla-scriptbase_query.Tpo $(DEPDIR)/hydrilla-scriptbase_query.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='scriptbase_query.c' object='hydrilla-scriptbase_query.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hydrilla_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o hydrilla-scriptbase_query.o `test -f 'scriptbase_query.c' || echo '$(srcdir)/'`scriptbase_query.c
+
+hydrilla-scriptbase_query.obj: scriptbase_query.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hydrilla_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT hydrilla-scriptbase_query.obj -MD -MP -MF $(DEPDIR)/hydrilla-scriptbase_query.Tpo -c -o hydrilla-scriptbase_query.obj `if test -f 'scriptbase_query.c'; then $(CYGPATH_W) 'scriptbase_query.c'; else $(CYGPATH_W) '$(srcdir)/scriptbase_query.c'; fi`
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/hydrilla-scriptbase_query.Tpo $(DEPDIR)/hydrilla-scriptbase_query.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='scriptbase_query.c' object='hydrilla-scriptbase_query.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hydrilla_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o hydrilla-scriptbase_query.obj `if test -f 'scriptbase_query.c'; then $(CYGPATH_W) 'scriptbase_query.c'; else $(CYGPATH_W) '$(srcdir)/scriptbase_query.c'; fi`
+
+hydrilla-serve.o: serve.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hydrilla_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT hydrilla-serve.o -MD -MP -MF $(DEPDIR)/hydrilla-serve.Tpo -c -o hydrilla-serve.o `test -f 'serve.c' || echo '$(srcdir)/'`serve.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/hydrilla-serve.Tpo $(DEPDIR)/hydrilla-serve.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='serve.c' object='hydrilla-serve.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hydrilla_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o hydrilla-serve.o `test -f 'serve.c' || echo '$(srcdir)/'`serve.c
+
+hydrilla-serve.obj: serve.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hydrilla_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT hydrilla-serve.obj -MD -MP -MF $(DEPDIR)/hydrilla-serve.Tpo -c -o hydrilla-serve.obj `if test -f 'serve.c'; then $(CYGPATH_W) 'serve.c'; else $(CYGPATH_W) '$(srcdir)/serve.c'; fi`
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/hydrilla-serve.Tpo $(DEPDIR)/hydrilla-serve.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='serve.c' object='hydrilla-serve.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hydrilla_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o hydrilla-serve.obj `if test -f 'serve.c'; then $(CYGPATH_W) 'serve.c'; else $(CYGPATH_W) '$(srcdir)/serve.c'; fi`
+
+hydrilla-string_buf.o: string_buf.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hydrilla_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT hydrilla-string_buf.o -MD -MP -MF $(DEPDIR)/hydrilla-string_buf.Tpo -c -o hydrilla-string_buf.o `test -f 'string_buf.c' || echo '$(srcdir)/'`string_buf.c
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/hydrilla-string_buf.Tpo $(DEPDIR)/hydrilla-string_buf.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='string_buf.c' object='hydrilla-string_buf.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hydrilla_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o hydrilla-string_buf.o `test -f 'string_buf.c' || echo '$(srcdir)/'`string_buf.c
+
+hydrilla-string_buf.obj: string_buf.c
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hydrilla_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT hydrilla-string_buf.obj -MD -MP -MF $(DEPDIR)/hydrilla-string_buf.Tpo -c -o hydrilla-string_buf.obj `if test -f 'string_buf.c'; then $(CYGPATH_W) 'string_buf.c'; else $(CYGPATH_W) '$(srcdir)/string_buf.c'; fi`
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/hydrilla-string_buf.Tpo $(DEPDIR)/hydrilla-string_buf.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='string_buf.c' object='hydrilla-string_buf.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(hydrilla_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o hydrilla-string_buf.obj `if test -f 'string_buf.c'; then $(CYGPATH_W) 'string_buf.c'; else $(CYGPATH_W) '$(srcdir)/string_buf.c'; fi`
+
ID: $(am__tagged_files)
$(am__define_uniq_tagged_files); mkid -fID $$unique
tags: tags-am
@@ -507,13 +613,13 @@ clean: clean-am
clean-am: clean-binPROGRAMS clean-generic mostlyclean-am
distclean: distclean-am
- -rm -f ./$(DEPDIR)/hashtable.Po
- -rm -f ./$(DEPDIR)/main.Po
- -rm -f ./$(DEPDIR)/scriptbase_build.Po
- -rm -f ./$(DEPDIR)/scriptbase_json_query.Po
- -rm -f ./$(DEPDIR)/scriptbase_query.Po
- -rm -f ./$(DEPDIR)/serve.Po
- -rm -f ./$(DEPDIR)/string_buf.Po
+ -rm -f ./$(DEPDIR)/hydrilla-hashtable.Po
+ -rm -f ./$(DEPDIR)/hydrilla-main.Po
+ -rm -f ./$(DEPDIR)/hydrilla-scriptbase_build.Po
+ -rm -f ./$(DEPDIR)/hydrilla-scriptbase_json_query.Po
+ -rm -f ./$(DEPDIR)/hydrilla-scriptbase_query.Po
+ -rm -f ./$(DEPDIR)/hydrilla-serve.Po
+ -rm -f ./$(DEPDIR)/hydrilla-string_buf.Po
-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
distclean-tags
@@ -559,13 +665,13 @@ install-ps-am:
installcheck-am:
maintainer-clean: maintainer-clean-am
- -rm -f ./$(DEPDIR)/hashtable.Po
- -rm -f ./$(DEPDIR)/main.Po
- -rm -f ./$(DEPDIR)/scriptbase_build.Po
- -rm -f ./$(DEPDIR)/scriptbase_json_query.Po
- -rm -f ./$(DEPDIR)/scriptbase_query.Po
- -rm -f ./$(DEPDIR)/serve.Po
- -rm -f ./$(DEPDIR)/string_buf.Po
+ -rm -f ./$(DEPDIR)/hydrilla-hashtable.Po
+ -rm -f ./$(DEPDIR)/hydrilla-main.Po
+ -rm -f ./$(DEPDIR)/hydrilla-scriptbase_build.Po
+ -rm -f ./$(DEPDIR)/hydrilla-scriptbase_json_query.Po
+ -rm -f ./$(DEPDIR)/hydrilla-scriptbase_query.Po
+ -rm -f ./$(DEPDIR)/hydrilla-serve.Po
+ -rm -f ./$(DEPDIR)/hydrilla-string_buf.Po
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
diff --git a/src/main.c b/src/main.c
index 4902585..0563422 100644
--- a/src/main.c
+++ b/src/main.c
@@ -29,7 +29,7 @@
errno = VERY_UNLIKELY_TO_COLLIDE_NAME_$$$$$$$$##__LINE__; \
} while (0)
-static const char default_search_path[] = "/var/lib/hydrilla/content/";
+static const char default_search_path[] = CONTENTDIR;
static int process_scriptbase_subdir(struct scriptbase *base,
struct dirent *subdir,