# ***************************************************************
#
# Makefile genérico para compilar programas em C
# usando o compilador gcc
#
# ***************************************************************

CFLAGS = -Wall -ansi -pedantic -O2 -lm

RM = /bin/rm -f
CC = gcc

# ***************************************************************

.c:
	$(CC) -o $* $*.c $(CFLAGS)

# ***************************************************************

clean:
	$(RM) *~ \#~ .\#* *.o core a.out
	find . -perm +100 -type f -delete
