From: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: David Woodhouse <dwmw2@infradead.org>, linux-pcmcia@lists.infradead.org
Subject: [PATCH 5/5] Build infrastructure for mkcis and dump_cis programs
Date: Fri, 24 Sep 2010 20:49:25 +0400 [thread overview]
Message-ID: <1285346965-23499-6-git-send-email-dbaryshkov@gmail.com> (raw)
In-Reply-To: <1285346965-23499-1-git-send-email-dbaryshkov@gmail.com>
Add Makefile and .gitignore for mkcis/dump_cis programs.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
---
mkcis/.gitignore | 4 ++++
mkcis/Makefile | 29 +++++++++++++++++++++++++++++
2 files changed, 33 insertions(+), 0 deletions(-)
create mode 100644 mkcis/.gitignore
create mode 100644 mkcis/Makefile
diff --git a/mkcis/.gitignore b/mkcis/.gitignore
new file mode 100644
index 0000000..8d19f6d
--- /dev/null
+++ b/mkcis/.gitignore
@@ -0,0 +1,4 @@
+*.o
+mkcis
+dump_cis
+
diff --git a/mkcis/Makefile b/mkcis/Makefile
new file mode 100644
index 0000000..b7faa6f
--- /dev/null
+++ b/mkcis/Makefile
@@ -0,0 +1,29 @@
+CFLAGS = -Wall -I.
+LDFLAGS = -lm
+
+# Uncomment to regenerate flex/bison output
+# GENERATE_PARSER = 1
+
+BISON = bison
+FLEX = flex
+
+all: mkcis dump_cis
+
+dump_cis: dump_cis.o
+
+mkcis: mkcis.o mkcis-lexer.lex.o mkcis-parser.tab.o
+
+clean:
+ -rm -f mkcis dump_cis *.o
+
+mkcis-lexer.lex.o: mkcis-parser.tab.h
+
+ifeq ($(GENERATE_PARSER),1)
+mkcis-parser.tab.h: mkcis-parser.tab.c
+
+mkcis-parser.tab.c: mkcis-parser.y
+ $(BISON) -d -o $@ $<
+
+mkcis-lexer.lex.c: mkcis-lexer.l
+ $(FLEX) -o $@ $<
+endif
--
1.7.1
prev parent reply other threads:[~2010-09-24 16:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-24 16:49 [PATCH 0/5] Add programs to work with CIS files Dmitry Eremin-Solenikov
2010-09-24 16:49 ` [PATCH 1/5] Import cistpl.h header from linux kernel Dmitry Eremin-Solenikov
2010-09-24 16:49 ` [PATCH 2/5] Add mkcis - a program that can create .cis from text description Dmitry Eremin-Solenikov
2010-09-24 16:49 ` [PATCH 3/5] Add files with text descriptions for CIS files Dmitry Eremin-Solenikov
2010-09-24 16:49 ` [PATCH 4/5] Add an utility to parse CIS files to readable form Dmitry Eremin-Solenikov
2010-09-25 7:33 ` Wolfram Sang
2010-09-25 12:00 ` Dominik Brodowski
2010-09-24 16:49 ` Dmitry Eremin-Solenikov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1285346965-23499-6-git-send-email-dbaryshkov@gmail.com \
--to=dbaryshkov@gmail.com \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pcmcia@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome