Click on Makefile to get source.
# set compiler used for builing program
CC	= gcc
# gnu options
GCCOPTS	= -Wall -ansi -g
# sun options
CCOPTS	= 
# options for c compiler
COPTS  = $(GCCOPTS)
main.o:	stack.h main.c
	$(CC) -c $(COPTS) main.c
stack.o:	stack.h stack.c
	$(CC) -c $(COPTS) stack.c
array_stack.o:	stack.h array_stack.c
	$(CC) -c $(COPTS) array_stack.c
list_stack.o:	stack.h list_stack.c
	$(CC) -c $(COPTS) list_stack.c
# make the test with an array_stack
a.out:	main.o stack.o array_stack.o
	$(CC) main.o stack.o array_stack.o
# make the test with a list_stack
a2.out:	main.o stack.o list_stack.o
	$(CC) -o a2.out main.o stack.o list_stack.o
clean:
	/bin/rm -f *.o a.out a2.out *.ps
all:	a.out a2.out
	echo "Done!"
main.ps:     main.c
	a2ps -v --columns=1 -f 18 --no-header --borders no \
             --landscape --output=main.ps main.c
stack.ps:     stack.h stack.c
	a2ps -v --columns=1 -f 15 --no-header --borders no \
             --landscape --output=stack.ps stack.h stack.c
array_stack.ps:     array_stack.c
	a2ps -v --columns=1 -f 16 --no-header --borders no \
             --landscape --output=array_stack.ps array_stack.c
list_stack.ps:     list_stack.c
	a2ps -v --columns=1 -f 16 --no-header --borders no \
             --landscape --output=list_stack.ps list_stack.c
highlight:
	../../C++Examples/make_hl_html array_stack.c c ../
	../../C++Examples/make_hl_html array_stack_without_newstack.c c ../
	../../C++Examples/make_hl_html list_stack.c c ../
	../../C++Examples/make_hl_html main.c c ../
	../../C++Examples/make_hl_html main2.c c ../
	../../C++Examples/make_hl_html stack.c c ../
	../../C++Examples/make_hl_html stack.h c ../
	../../C++Examples/make_hl_html stack_with_delete.h c ../
	../../C++Examples/make_hl_html Makefile Makefile ../