# makefile for wipefree & wipefile

CC = cc

CFLAGS = -O -3 -w3 

SRC = wipefree.c wipefile.c show_gpl.c

OBJ = $(SRC:.c=.o)

ERR = $(SRC:.c=.err)

all: wipefree wipefile

wipefile: wipefile.o show_gpl.o
	$(CC) $(CFLAGS) -o $@ $@.o show_gpl.o
	usemsg $@ $@.c

wipefree: wipefree.o show_gpl.o
	$(CC) $(CFLAGS) -o $@ $@.o show_gpl.o
	usemsg $@ $@.c

clean:
	@rm -f $(OBJ)

spotless: clean
	@rm -f $(ERR)
	@rm -f wipefile wipefree

rebuild: spotless all
