

#BISON=/home/bob/download/bison/bison-2.1/target/bin/bison
BISON=/home/bob/download/bison/bison-1.875/target/bin/bison
SKELETONFILE=push.c
#SKELETONPATH=/home/bob/download/bison/bison-2.1/target/share/bison
SKELETONPATH=/home/bob/download/bison/bison-1.875/target/share/bison
PUSH_C=$(SKELETONPATH)/$(SKELETONFILE)
all: calc


calc: rpc.o ifx.o main.o
	gcc -lm main.o rpc.o ifx.o -o calc

rpc.tab.c:rpc.y 
	$(BISON) -v -S push.c rpc.y

ifx.tab.c:ifx.y 
	$(BISON) -v -S push.c ifx.y


rpc.o: rpc.tab.c
	gcc -Wall -c -orpc.o rpc.tab.c  

ifx.o: ifx.tab.c
	gcc  -Wall -c -oifx.o ifx.tab.c  

main.o:main.c  rpc.tab.h ifx.tab.h
# 	gcc -E  -Wall main.c -omain.e
	gcc -c  -Wall main.c -omain.o

clean:
	rm -f *.o *.e *.tab.c *.tab.h calc *~
