From ca63d679fd6e7f09837b31b7d2d5d87cd132bf2f Mon Sep 17 00:00:00 2001 From: sruffell Date: Thu, 27 Mar 2008 22:08:24 +0000 Subject: No need to make the wctdm_fxomodes.h file anymore, since it would be the same as the fxo_modes.h file. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4101 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- kernel/xpp/utils/Makefile | 9 ++------- kernel/xpp/utils/print_modes.c | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) (limited to 'kernel/xpp') diff --git a/kernel/xpp/utils/Makefile b/kernel/xpp/utils/Makefile index 1651154..d8290eb 100644 --- a/kernel/xpp/utils/Makefile +++ b/kernel/xpp/utils/Makefile @@ -49,8 +49,6 @@ ifeq (,$(PBX_LIBUSB)) PBX_LIBUSB = $(shell if [ -r /usr/include/usb.h ]; then echo 1; else echo 0; fi) endif -WCTDM=$(ZAP_KERNEL)/fxo_modes.h - CFLAGS = -g -Wall $(EXTRA_CFLAGS) %.8: % @@ -126,11 +124,8 @@ test_parse.o: test_parse.c hexfile.h test_parse: test_parse.o libhexfile.a $(CC) -L. -o $@ $@.o $(EXTRA_LIBS) -lhexfile -lusb -print_modes: print_modes.c wctdm_fxomodes.h - $(HOSTCC) -o $@ $(CFLAGS) $< - -wctdm_fxomodes.h: $(WCTDM) - perl -n -e 'print if (/^static struct fxo_mode {$$/ .. /};$$/)' $(WCTDM) >$@ +print_modes: print_modes.c $(ZAP_KERNEL)/fxo_modes.h + $(HOSTCC) -I$(ZAP_KERNEL) -o $@ $(CFLAGS) $< init_fxo_modes: print_modes ./$< >$@ diff --git a/kernel/xpp/utils/print_modes.c b/kernel/xpp/utils/print_modes.c index 6312bd1..e894b11 100644 --- a/kernel/xpp/utils/print_modes.c +++ b/kernel/xpp/utils/print_modes.c @@ -1,6 +1,6 @@ #include -#include "wctdm_fxomodes.h" +#include "fxo_modes.h" int main() { size_t i; -- cgit v1.2.3