You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

30 lines
379 B

.PHONY = all clean cliente gestor verificador
CC = gcc
LINKERFLAG = -lm
SRCS := $(wildcard *.c)
BINS := $(SRCS:%.c=%)
all: ${BINS}
cp ${BINS} ~/TP
%: %.o
@echo "Checking.."
${CC} ${LINKERFLAG} $< -o $@
%.o: %.c
@echo "Creating object.."
${CC} -c $<
cliente: client.o
gestor: server.o
verificador: verificador.o
clean:
@echo "Cleaning up..."
rm -rvf *.o ${BINS}