diff options
-rw-r--r-- | kernel/xpp/utils/Makefile | 9 | ||||
-rw-r--r-- | kernel/xpp/utils/print_modes.c | 2 |
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; |