CC = gcc

#all:${PROG_NAME}
all:fileserver fileclient

fileclient:fileclient.o common.o
	${CC} -o $@ $^

fileserver:fileserver.o common.o
	${CC} -o $@ $^

# ͷļ޸ģԶԴļ
${OBJS}:${INCS}

.c.o:
	${CC} -c $< -Icommon

common:common.c common.h
	${CC} -c common.c

clean:
	rm -f *.o ${PROG_NAME} common/*.o

rebuild:clean all 
