include ..\include\makefile.i

pars.lib: pars0grm.obj lexyy.obj pars0pars.obj pars0opt.obj pars0sym.obj rename_and_copy
	lib -out:..\libs\pars.lib pars0grm.obj lexyy.obj pars0pars.obj pars0opt.obj pars0sym.obj

pars0grm.obj: pars0grm.y
	bs pars0grm.y
	$(CCOM) $(CFLW) -c pars0grm.c

rename_and_copy:
	ren pars0grm.h pars0grm.h
	copy pars0grm.h ..\include
	
lexyy.obj: pars0lex.l
	fl pars0lex.l
	$(CCOM) $(CFLN) -c lexyy.c

pars0pars.obj: pars0pars.c
	$(CCOM) $(CFL) -c pars0pars.c

pars0opt.obj: pars0opt.c
	$(CCOM) $(CFL) -c pars0opt.c

pars0sym.obj: pars0sym.c
	$(CCOM) $(CFL) -c pars0sym.c

