The fsxs tool (sort of apxs for FreeSWITCH) is back from the dead.

Changes include an extended usage message and support for e.g. "fsxs --cflags"
style calls to get one or more defined variables on one line (instead of the
"show" command; easier for scripting).


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7247 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Stefan Knoblich committed 2008-01-16 14:27:03 +00:00
1 parent cc3a95c1da
commit 92b2011b37
2 files changed
+71 -13

No files matched your search

+22 -1
View File
@@ -157,7 +157,7 @@ libfreeswitch_la_SOURCES += src/switch_odbc.c
libfreeswitch_la_LDFLAGS += -lodbc
endif
bin_SCRIPTS = scripts/gentls_cert
bin_SCRIPTS = scripts/gentls_cert scripts/fsxs
libs/libedit/src/.libs/libedit.a:
@@ -305,6 +305,27 @@ modwipe:
dox:
cd docs && doxygen $(PWD)/docs/Doxygen.conf
scripts/fsxs: scripts/fsxs.in
@echo creating fsxs
@sed -e "s,@MODULES_DIR\@,$(PREFIX)/mod," \
-e "s,@LIB_DIR\@,$(PREFIX)/lib," \
-e "s,@BIN_DIR\@,$(PREFIX)/bin," \
-e "s,@INC_DIR\@,$(PREFIX)/include," \
-e "s,@CFG_DIR\@,$(PREFIX)/conf," \
-e "s,@DB_DIR\@,$(PREFIX)/db," \
-e "s,@PREFIX\@,$(PREFIX)," \
-e "s,@CC\@,$(CC)," \
-e "s,@LD\@,$(CC)," \
-e "s,@INSTALL\@,$(INSTALL)," \
-e "s,@MKINSTALLDIRS\@,$(mkdir_p)," \
\
-e "s|@CFLAGS\@|$(CFLAGS) `$(switch_srcdir)/libs/apr/apr-1-config --cflags --cppflags`|" \
-e "s|@INCLUDES\@|-I$(PREFIX)/include|" \
-e "s|@SOLINK\@|$(SOLINK)|" \
-e "s|@LDFLAGS\@|-L$(PREFIX)/lib|" \
-e "s|@LIBS\@|`$(switch_srcdir)/libs/apr/apr-1-config --libs` `$(switch_srcdir)/libs/apr-util/apu-1-config --libs`|" \
scripts/fsxs.in > scripts/fsxs
eclean: clean
rm -f `find . -type f -name \*~`
rm -f `find . -type f -name \.*~`