summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2007-04-05 18:48:02 +1000
committerJeremy Kerr <jk@ozlabs.org>2007-04-05 18:48:02 +1000
commit0baa987696e787f5136f2296295206d99c238f19 (patch)
tree79906be75c68cb887e4652403c19b33f8a5266c2 /Makefile
parent54ed7f641d0dd17778ce8cae5a5dbfd645366d3c (diff)
downloadtalos-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--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 21bbd1b..54e8f9a 100644
--- a/Makefile
+++ b/Makefile
@@ -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 $@ $^
OpenPOWER on IntegriCloud