#Installation options
INSTALL_DIR = /usr/local
BIN_DIR = ${INSTALL_DIR}/bin
MAN_DIR = ${INSTALL_DIR}/man/man1


OBJ	= shuffle.o

CC	= gcc
#Profile
#LFLAGS	=  -o shuffle -pg
#CFLAGS	= -pg -g -Wall -pedantic

#Optimized
LFLAGS	=  -o shuffle 
CFLAGS	= -O2 -Wall -pedantic

shuffle: $(OBJ)
	gcc $(OBJ) $(LFLAGS)

clean:
	rm *.o shuffle

install:
	install -m 755 shuffle ${BIN_DIR}
	install -m 644 shuffle.1 ${MAN_DIR}

.c.o:
	gcc $(CFLAGS) -c $<

