######################################################################
# Settings

CFLAGS=-Wall -g


######################################################################
# Standard targets

.PHONY: default
default: all

.PHONY: all
all: psp-examples

.PHONY: test
test:

.PHONY: clean
clean: 
	rm -rf *.o
	rm -rf *~

.PHONY: distclean
distclean: clean
	rm -rf psp-examples

.PHONY: package
package:
	tar cvf rebelsky.hw7.tar Makefile *.c *.h


######################################################################
# Individual programs

psp-examples: psp-examples.o print-sequential-prefixes.o
	$(LINK.o) -o $@ $^


######################################################################
# Header dependencies

print-sequential-prefixes.o: string-utils.h
psp-examples.o: string-utils.h


