# Fichero Makefile para crear el ejecutable "ple".

OBJS =  main.o proaux.o sintax.o unific.o narrow.o oe.o ob.o fe.o
FLAGS = -g -ansi -pedantic 

ple: $(OBJS)
	gcc $(FLAGS) -o ple $(OBJS)

main.o: main.c const.h estruc.h glovar.h
	gcc $(FLAGS) -c main.c 

proaux.o: proaux.c const.h estruc.h glovar.h
	gcc $(FLAGS) -c proaux.c 

sintax.o: sintax.c const.h estruc.h glovar.h proaux.h
	gcc $(FLAGS) -c sintax.c 

unific.o: unific.c const.h estruc.h glovar.h proaux.h
	gcc $(FLAGS) -c unific.c 

narrow.o: narrow.c const.h estruc.h glovar.h proaux.h unific.h
	gcc $(FLAGS) -c narrow.c 

oe.o: oe.c const.h estruc.h glovar.h proaux.h unific.h narrow.h
	gcc $(FLAGS) -c oe.c 

ob.o: fe.c const.h estruc.h glovar.h proaux.h unific.h narrow.h
	gcc $(FLAGS) -c ob.c 

fe.o: fe.c const.h estruc.h glovar.h proaux.h unific.h 
	gcc $(FLAGS) -c fe.c 

