I have been unable to assertain why GNU make cannot handle the following
file, while the AIX default make handles it just fine. The first command
out of NU make is 

cc   -c -o y.tab.o y.tab.c

which gives the error

cc: 1501-228 input file y.tab.c not found

This makes no sense since the instructions for building y.tab.c are
included.

randy

-- 
Five hundred, twenty-five thousand six hundred minutes, how do you measure...?
 
[EMAIL PROTECTED]                  http://www.louisville.edu/~rjmill01/
Triangle Fraternity                   http://www.louisville.edu/rso/triangle/
Association for Computing Machinery   http://acm.louisville.edu/
CC                              = cc
#CFLAGS                     = -O2 -g -ansi -pedantic -Wall # -DEBUG -DYYDEBUG=1
#GCC_LEX_CFLAGS  = -Wno-implicit -Wno-unused

#
# Various programs
# NOTE: The -s option forces flex to ignore the "default" case
# NOTE: The -y option cause bison to use yacc file names
# NOTE: The -v options causes bison to create y.output

#LEX   = flex -Cfe
LEX   = flex -Cfe -s
YACC  = bison -dvy
RM    = rm -f
STRIP = strip


THESIS_NAME = c
OBJS        = y.tab.o lex.yy.o $(THESIS_NAME).o

all: $(THESIS_NAME)

lex.yy.c: scanner.l
        $(LEX) scanner.l

y.tab.c y.tab.h: parser.y
        $(YACC) parser.y

$(THESIS_NAME): $(OBJS)
        $(CC) $(CFLAGS) -lcurses -o $@ $(OBJS)

y.tab.o lex.yy.o: $(@:.o=.c)
        $(CC) $(CFLAGS) $(GCC_LEX_CFLAGS) -c -o $@ $(@:.o=.c)


clean:
        $(RM) lex.yy.c y.tab.c y.tab.h \
                lex.backup y.output vm_hash.c \
                $(THESIS_NAME)  $(OBJS)

Reply via email to