summaryrefslogtreecommitdiff
path: root/kernel/xpp/utils
diff options
context:
space:
mode:
authorsruffell <sruffell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-03-27 22:08:24 +0000
committersruffell <sruffell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-03-27 22:08:24 +0000
commitca63d679fd6e7f09837b31b7d2d5d87cd132bf2f (patch)
tree7f58c2a789db283433dd4bc61f73720a12fff1e6 /kernel/xpp/utils
parent39a3d9b55d34655ab9f384b404f895bdd6fb7546 (diff)
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
Diffstat (limited to 'kernel/xpp/utils')
-rw-r--r--kernel/xpp/utils/Makefile9
-rw-r--r--kernel/xpp/utils/print_modes.c2
2 files changed, 3 insertions, 8 deletions
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 <stdio.h>
-#include "wctdm_fxomodes.h"
+#include "fxo_modes.h"
int main() {
size_t i;