aboutsummaryrefslogtreecommitdiffstats
path: root/funcs
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-05-05 17:39:18 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-05-05 17:39:18 +0000
commit16b0b362a32a0b6ee80b763ef2239115d6d1ab16 (patch)
tree64178e900e0a5c61e9cb62164b67c45cb568d7c6 /funcs
parentd4dd060a57c6b29d509f5a921617abf28858c510 (diff)
Build as a single executable, work around Makefile issue
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5590 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs')
-rwxr-xr-xfuncs/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/funcs/Makefile b/funcs/Makefile
index c0be12574..dc40cbf44 100755
--- a/funcs/Makefile
+++ b/funcs/Makefile
@@ -23,25 +23,27 @@ FUNC_STRUCTS=$(shell grep 'struct ast_custom_function' $(BUILTINS:.o=.c) | awk '
CFLAGS+=-fPIC
+FUNC_SOURCES=$(BUILTINS:.o=.c)
+
all: $(FUNCS)
clean:
- rm -f *.so *.o .depend
+ rm -f *.so *.o .depend pbx_functions.h
%.so : %.o
$(CC) $(SOLINK) -o $@ $<
-$(BUILTINS) : CFLAGS += -DBUILTIN_FUNC
+#$(BUILTINS) : CFLAGS += -DBUILTIN_FUNC
pbx_functions.h: $(BUILTINS:.o=.c)
@echo "/* Automatically generated - do not edit */" > $@
- @for f in $(FUNC_STRUCTS); do echo "extern struct ast_custom_function $$f;" >> $@; done
+ @for f in $(FUNC_SOURCES); do echo "#include \"$$f\"" >> $@; done
@echo "static struct ast_custom_function *builtins[] = {" >> $@
@for f in $(FUNC_STRUCTS); do echo "&$$f," >> $@; done
@echo "};" >> $@
-pbx_functions.so: pbx_functions.o $(BUILTINS)
- $(CC) $(SOLINK) -o $@ $(BUILTINS) $<
+pbx_functions.so: pbx_functions.o #$(BUILTINS)
+ $(CC) $(SOLINK) -o $@ $<
strip $(foreach f,$(FUNC_STRUCTS),-N $(f)) $@
install: all