#
# makefile for test-int-list
#
# "make test-int-list" makes the executable
# "make clean" deletes object files
# "make xclean" deletes objects files and executable
#

OPT = -O
CFLAGS = -Wall -pedantic $(OPT)

EXE = test-int-list
OBJS = test-int-list.o int-list.o

test-int-list.o: test-int-list.c int-list.h

int-list.o: int-list.c int-list.h

test-int-list: $(OBJS)
	gcc $(CFLAGS) -o $(EXE) $(OBJS)

.PHONY: clean
clean:
	-rm $(OBJS)

.PHONY: xclean
xclean:
	$(MAKE) clean
	-rm $(EXE)