|
From: | Ramaswamy |
Subject: | Bison & Flex in make |
Date: | Wed, 5 Mar 2003 14:16:34 +0530 |
Hi,
I am workin on a prj on using
bison & flex. I had written a makefile and it works fine on linux but not on
cygwin. The version of make I have on crgwin is - 3.79.1. When I execute in
cuygwin I get the following error -
/home/ramaswamyr/bison1.875/bin/bison ./asnParserSpec.y
make: *** [asn_Parser.h] Error 255 And the content of the makefile is as follows. #Unix Specification Makefile AWK = awk
AFLAGS = -f CC = gcc
CFLAGS = -g LDFLAGS = -lm YACC = /home/ramaswamyr/bison1.875/bin/bison
YFLAGS =#-d -v LEX = flex
LFLAGS = SRC = "">BIN = ../bin
TMP = ../tmp OBJS = $(TMP)/asn_Lexer.o $(TMP)/asn_Parser.o
$(TMP)/naryTree.o\
$(TMP)/stringTable.o $(TMP)/main.o $(TMP)/trInFile.o asn1parse: $(OBJS)
$(CC) $(LDFLAGS) $(OBJS) -o $(BIN)/$@ $(TMP)/trInFile.o: trInFile.c trInFile.h prdnStrs.h
struct.h asn1Types.h
$(CC) $(CFLAGS) -c $(SRC)/trInFile.c -o $@ prdnStrs.h: asnParserSpec.y
$(AWK) $(AFLAGS) awkprdns asnParserSpec.y > $@ $(TMP)/main.o: main.c
$(CC) $(CFLAGS) -c $(SRC)/main.c -o $@ $(TMP)/stringTable.o: stringTable.c stringTable.h
asn1Types.h
$(CC) $(FLAGS) -c $(SRC)/stringTable.c -o $@ $(TMP)/naryTree.o: naryTree.c naryTree.h struct.h
asn1Types.h
$(CC) $(CFLAGS) -c $(SRC)/naryTree.c -o $@ $(TMP)/asn_Parser.o: asn_Parser.c#
asn_Parser.h
$(CC) $(CFLAGS) -c $(SRC)/asn_Parser.c -o $@ $(TMP)/asn_Lexer.o: asn_Lexer.c
asn_Parser.h
$(CC) $(CFLAGS) -c $(SRC)/asn_Lexer.c -o $@ asn_Parser.h asn_Parser.c: asnParserSpec.y naryTree.h struct.h prdnNames.h\ literal.h asn1Types.h $(YACC) $(YFLAGS) $(SRC)/asnParserSpec.y # $(YACC) $(YFLAGS) -o asn_Parser.c $(SRC)/asnParserSpec.y prdnNames.h: asnParserSpec.y
$(AWK) $(AFLAGS) awkprdn asnParserSpec.y > $@ asn_Lexer.c: asn_Parser.h
asnScannerSpec.l
$(LEX) $(LFLAGS) -o$@ $(SRC)/asnScannerSpec.l debug: $(OBJS)
$(CC) $(LDFLAGS) $(OBJS) -o $(BIN)/$@ release: $(OBJS)
$(CC) $(LDFLAGS) $(OBJS) -o $(BIN)/$@ all: asn1parse
clean:
$(RM) *.backup *.output asn_Lexer.* asn_Parser.* *.tab.c prdnNames.h\ prdnStrs.h cd $(BIN); $(RM) asn1parse debug release cd $(TMP); $(RM) *.o This is not a problem with bison and hence not suited for this mailing
list. Probably some of you would have tackeled this before and hence this post.
Kindly advise.
Regds
Ram --------------------- Information contained and transmitted by this E-MAIL is proprietary to Synergy Infotech Private Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. We have taken precautions to minimize the risk of transmitting software viruses, but we advise you to carry out your own virus checks on any attachment to this message. We cannot accept liability for any loss or damage caused by software viruses. If you have received this communication in error, please delete this mail & notify us immediately at mailto:address@hidden |
[Prev in Thread] | Current Thread | [Next in Thread] |