# pinomakefile SJ

CC = gcc
EXE = pinoesimerkki
LIBS = 				# voisi olla esim -lm
FLAGS = -Wall -ansi
OBS = pinonkaytto.o pino.o

$(EXE): $(OBS)
	$(CC) $(FLAGS) -o $@ $(OBS) $(LIBS)
pino.o: pino.h pino.c
	$(CC) $(FLAGS) -c pino.c
pinonkaytto.o: pino.h pinonkaytto.c
	$(CC) $(FLAGS) -c pinonkaytto.c
