CC = gcc
INSTALL_DIR = /usr/local/bin

all: srm sfill sswap

srm: srm.c
	$(CC) -O2 -o srm srm.c
	strip srm
sfill: sfill.c
	$(CC) -O2 -o sfill sfill.c
	strip sfill
sswap: sswap.c
	$(CC) -O2 -o sswap sswap.c
	strip sswap

clean:
	rm -f sfill srm sswap core

install: srm sfill sswap
	cp -f srm sfill sswap ${INSTALL_DIR}
	chmod 711 ${INSTALL_DIR}/srm
	chmod 711 ${INSTALL_DIR}/sfill
	chmod 711 ${INSTALL_DIR}/sswap
