summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2008-08-01 21:37:42 +0000
committerKevin P. Fleming <kpfleming@digium.com>2008-08-01 21:37:42 +0000
commit98fcd6fa6ca11aeedcb714182ccde2fdfd817fa3 (patch)
treeabd9d668a55e59478a84dad92f7a24ab080aefe2 /Makefile
parent6e0d374904a1327a474b548e2f0ba2d1f7515c8a (diff)
reduce the amount of recompiling necessary when the version string changes
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4646 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 4016703..c6b06c6 100644
--- a/Makefile
+++ b/Makefile
@@ -83,9 +83,9 @@ endif
endif
LTZ_A:=libtonezone.a
-LTZ_A_OBJS:=zonedata.o tonezone.o
+LTZ_A_OBJS:=zonedata.o tonezone.o version.o
LTZ_SO:=libtonezone.so
-LTZ_SO_OBJS:=zonedata.lo tonezone.lo
+LTZ_SO_OBJS:=zonedata.lo tonezone.lo version.o
LTZ_SO_MAJOR_VER:=1
LTZ_SO_MINOR_VER:=0
@@ -130,7 +130,7 @@ programs: libs utils
utils: $(BINS) utils-subdirs
-version.h: FORCE
+version.c: FORCE
@TOOLSVERSION="${TOOLSVERSION}" build_tools/make_version_h > $@.tmp
@if cmp -s $@.tmp $@ ; then :; else \
mv $@.tmp $@ ; \
@@ -141,6 +141,8 @@ tests: patgen pattest patlooptest hdlcstress hdlctest hdlcgen hdlcverify timerte
$(UTILS): %: %.o
+$(UTILS): version.o
+
%.o: %.c
$(CC) $(CFLAGS) $(MAKE_DEPS) -c -o $@ $<
@@ -150,7 +152,7 @@ $(UTILS): %: %.o
%: %.o
$(CC) $(LDFLAGS) -o $@ $^
-prereq: config.status version.h
+prereq: config.status
dahdi_tool: CFLAGS+=$(NEWT_INCLUDE)
dahdi_tool: LDFLAGS+=$(NEWT_LIB)