diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2007-04-05 18:48:02 +1000 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2007-04-05 18:48:02 +1000 |
commit | 0baa987696e787f5136f2296295206d99c238f19 (patch) | |
tree | 79906be75c68cb887e4652403c19b33f8a5266c2 /Makefile | |
parent | 54ed7f641d0dd17778ce8cae5a5dbfd645366d3c (diff) | |
download | talos-petitboot-0baa987696e787f5136f2296295206d99c238f19.tar.gz talos-petitboot-0baa987696e787f5136f2296295206d99c238f19.zip |
Separate parsing infrastructure and add test wrapper
Add a parsers.h header, providing the interface that parsers should
be written to (instead of the olf udev-helper.h). This allows us to
build the parsers into a separate test executable.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -20,7 +20,13 @@ petitboot: petitboot.o devices.o petitboot: LDFLAGS+=$(TWIN_LDFLAGS) petitboot: CFLAGS+=$(TWIN_CFLAGS) -udev-helper: devices/udev-helper.o devices/params.o devices/yaboot-cfg.o \ +udev-helper: devices/udev-helper.o devices/params.o devices/parser.o \ + devices/yaboot-cfg.o \ + $(foreach p,$(PARSERS),devices/$(p)-parser.o) + $(CC) $(LDFLAGS) -o $@ $^ + +parser-test: devices/parser-test.o devices/params.o devices/parser.o \ + devices/yaboot-cfg.o \ $(foreach p,$(PARSERS),devices/$(p)-parser.o) $(CC) $(LDFLAGS) -o $@ $^ |