From: ian Date: Sun, 27 Mar 2005 21:45:27 +0000 (+0000) Subject: autogenerate layoutinfo.h X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=72ba80fcb0b4385cd4bb3fd75ea08c6963166325;p=trains.git autogenerate 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