COMPILER = gcc CFLAGS = -Wall -pthread LFLAGS = COBJS = matrix_lib.o uici.o chat.o EXES = matrix_serial matrix_threads matrix_threads_II client server all: ${EXES} matrix_serial: matrix_serial.c ${COBJS} ${COMPILER} ${CFLAGS} matrix_serial.c -o matrix_serial ${COBJS} matrix_threads: matrix_threads.c ${COBJS} ${COMPILER} ${CFLAGS} matrix_threads.c -o matrix_threads ${COBJS} matrix_threads_II: matrix_threads_II.c ${COBJS} ${COMPILER} ${CFLAGS} matrix_threads_II.c -o matrix_threads_II ${COBJS} client: client.c ${COBJS} ${COMPILER} ${CFLAGS} ${LFLAGS} client.c ${COBJS} -o client server: server.c ${COBJS} ${COMPILER} ${CFLAGS} ${LFLAGS} server.c ${COBJS} -o server %.o: %.c %.h makefile ${COMPILER} ${CFLAGS} $< -c clean: rm -f *.o *~ ${EXES}