diff options
author | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-04-12 05:07:55 +0000 |
---|---|---|
committer | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-04-12 05:07:55 +0000 |
commit | ecd85f1c6681116ebd86ef139c5768f7586f12ea (patch) | |
tree | 2f3ecb269929bc40465ea6a466cfc5b22734fb91 /Makefile | |
parent | fe06ed8c3f3b025a22a3667e35aae09b74e79746 (diff) |
Add data drivers so users don't need to recompile to use
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1001 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -4,6 +4,8 @@ # Copyright (C) 2001-2006 Digium, Inc. # # +.EXPORT_ALL_VARIABLES: + BASEADDR=0xd0000 HOSTCC=gcc @@ -283,6 +285,9 @@ ztcfg.c: ztcfg.h ztcfg-shared: ztcfg.o $(LIBTONEZONE_SO) $(CC) -o $@ $^ -lm +data: + $(MAKE) -C datamods datamods + ztcfg: ztcfg.o libtonezone.a $(CC) -o $@ $^ -lm @@ -357,6 +362,11 @@ install: all devices rm -f $(INSTALL_PREFIX)/lib/modules/$(KVERS)/extra/$$x ; \ done; \ $(KMAKE_INST); \ + if [ -f datamods/syncppp.ko ]; then \ + $(MAKE) -C datamods install; \ + else \ + rm -f $(INSTALL_PREFIX)/lib/modules/$(KVERS)/misc/{hdlc_*,syncppp}.ko; \ + fi; \ if ! [ -f wcfxsusb.ko ]; then \ rm -f $(INSTALL_PREFIX)/lib/modules/$(KVERS)/misc/wcfxsusb.ko; \ fi; \ @@ -496,6 +506,7 @@ clean: rm -f $(TZOBJS) $(LIBTONEZONE_SO) *.lo ifeq (${BUILDVER},linux26) $(KMAKE) clean + $(MAKE) -C datamods clean endif rm -f xpp/*.ko xpp/*.mod.c xpp/.*o.cmd rm -f xpp/*.o xpp/*.mod.o |