]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Update utils Makefile to handle r387294
authorMatthew Jordan <mjordan@digium.com>
Thu, 2 May 2013 17:11:20 +0000 (17:11 +0000)
committerMatthew Jordan <mjordan@digium.com>
Thu, 2 May 2013 17:11:20 +0000 (17:11 +0000)
Alec's patch that added the Asterisk version to 'core show locks' angered the
items in utils, as they exist somewhat outside of the Asterisk build system.
Some day, this Makefile should get nuked from high orbit, but for now, include
version.c in its list of stuff to pile in.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@387421 65c4cc65-6c06-0410-ace0-fbb531ad65f3

utils/Makefile

index acf363b4b930cb4836cc7cb6e5cdb1744af22bbb..f6c0cdc6002b44ae48d258fb9368aa32bd953e6f 100644 (file)
@@ -149,6 +149,10 @@ aelparse.o: _ASTCFLAGS+=-I$(ASTTOPDIR)/res -Wno-unused
 aelparse: LIBS+=-lm
 aelparse: aelparse.o aelbison.o pbx_ael.o hashtab.o lock.o ael_main.o ast_expr2f.o ast_expr2.o strcompat.o pval.o extconf.o
 
+version.c: $(ASTTOPDIR)/main/version.c
+       $(ECHO_PREFIX) echo "   [CP] $(subst $(ASTTOPDIR)/,,$<) -> $@"
+       $(CMD_PREFIX) cp "$<" "$@"
+
 astobj2.c: $(ASTTOPDIR)/main/astobj2.c
        $(ECHO_PREFIX) echo "   [CP] $(subst $(ASTTOPDIR)/,,$<) -> $@"
        $(CMD_PREFIX) cp "$<" "$@"
@@ -174,7 +178,7 @@ threadstorage.c: $(ASTTOPDIR)/main/threadstorage.c
        $(CMD_PREFIX) cp "$<" "$@"
 
 
-refcounter: refcounter.o md5.o hashtab.o lock.o utils.o strings.o sha1.o strcompat.o threadstorage.o clicompat.o poll.o
+refcounter: refcounter.o md5.o hashtab.o lock.o utils.o strings.o sha1.o strcompat.o threadstorage.o clicompat.o poll.o version.o
 refcounter.o: _ASTCFLAGS+=-O0
 
 extconf.o: extconf.c