diff options
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 |