From 72ba80fcb0b4385cd4bb3fd75ea08c6963166325 Mon Sep 17 00:00:00 2001 From: ian Date: Sun, 27 Mar 2005 21:45:27 +0000 Subject: [PATCH] autogenerate layoutinfo.h --- hostside/Makefile | 6 ++++++ hostside/layoutinfo.h | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) delete mode 100644 hostside/layoutinfo.h diff --git a/hostside/Makefile b/hostside/Makefile index bee9442..3de430e 100644 --- a/hostside/Makefile +++ b/hostside/Makefile @@ -10,6 +10,12 @@ all: $(TARGETS) hostside: serialio.o nmra.o main.o encode.o $(CC) $(CFLAGS) -o $@ $+ +ours.safety.o: ../layout/ours.safety.c safety.h + $(CC) $(CFLAGS) -I. -o $@ -c $< + +layoutinfo.h: ../layout/ours.safety.c Makefile + sed -e '/^#include/,$d' $< $o + encode.o: nmra-packets.h main.o: nmra-packets.h %.c: hostside.h diff --git a/hostside/layoutinfo.h b/hostside/layoutinfo.h deleted file mode 100644 index 60424e8..0000000 --- a/hostside/layoutinfo.h +++ /dev/null @@ -1,4 +0,0 @@ -/* will be autogenerated at some point */ - -#define NUM_TRAINS 2 -#define NUM_SEGMENTS 100 -- 2.30.2