diff options
author | Balbir Singh <balbir@linux.vnet.ibm.com> | 2008-03-19 14:53:07 +0000 |
---|---|---|
committer | Balbir Singh <balbir@linux.vnet.ibm.com> | 2008-03-19 14:53:07 +0000 |
commit | d55f73ddbb0dc099b1471f3493e505142ce94a97 (patch) | |
tree | 7d4bcc778ed6f35fe043962b29873cff9ef9e24c /Makefile | |
download | libcg-d55f73ddbb0dc099b1471f3493e505142ce94a97.tar.gz libcg-d55f73ddbb0dc099b1471f3493e505142ce94a97.tar.xz libcg-d55f73ddbb0dc099b1471f3493e505142ce94a97.zip |
First initial revision. Look for TODOs and BUGs
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/src@1 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a8ad7a1 --- /dev/null +++ b/Makefile @@ -0,0 +1,31 @@ +# +# Copyright IBM Corporation. 2007 +# +# Authors: Balbir Singh <balbir@linux.vnet.ibm.com> +# This program is free software; you can redistribute it and/or modify it +# under the terms of version 2.1 of the GNU Lesser General Public License +# as published by the Free Software Foundation. +# +# This program is distributed in the hope that it would be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# +YACC_DEBUG=-t +DEBUG=-DDEBUG +INC=-I. +CFLAGS=-g -O2 -Wextra $(DEBUG) $(INC) +LIBS= + +all: cgconfig + +cgconfig: config.c y.tab.c lex.yy.c libcg.h file-ops.c + $(CC) $(CFLAGS) -o $@ y.tab.c lex.yy.c config.c file-ops.c $(LIBS) + +y.tab.c: parse.y lex.yy.c + byacc -v -d parse.y + +lex.yy.c: lex.l + flex lex.l + +clean: + \rm -f y.tab.c y.tab.h lex.yy.c y.output cgconfig |