## Here it is as text, instead of an attachment
## Sample Makefile

CC = gcc
CFLAGS = -pedantic -Wall   ## compiles with all warnings for extra safety


## ********************************************************* CHANGE 1 OF 2
## Modify these three variables' settings for your application
PROG = stacktest   # name of your program
HDRS = stack.h    # name of all header files
SRCS = liststack.c stacktest.c ../list/node.c
			   # name of all source code files



## This says that object files have the same name as your
## .c files, but with .o
OBJS = $(SRCS:.c=.o)



## The first (default) rule will build your program
$(PROG) : $(OBJS)
	$(CC) $(OBJS) -o $(PROG)




## ********************************************************* CHANGE 2 OF 2
## Modify this list to indicate which source and header files
## each object file in your program depends on
liststack.o : liststack.c stack.h
stacktest.o : stacktest.c stack.h
node.o : ../list/node.c ../list/node.h



## Running 'make clean' will cause this rule to be used
## which cleans up your directory by removing compiled and backup files
clean :
	rm -f core $(PROG) $(OBJS) *~