1 2ifndef POSIX_DIR_LIB 3 POSIX_DIR_LIB=/usr/lib 4endif 5 6INCLUDE = -I../../include 7LIB=-lmqueue 8 9CC=gcc 10CFLAGS=-Wall -O2 -g -I$(POSIX_DIR_INC) -L$(POSIX_DIR_LIB) -lpthread 11 12all: multi_send_rev_1.test multi_send_rev_2.test 13 14%.test : %.c 15 $(CC) $(CFLAGS) $(INCLUDE) $< -o $@ $(LIB) 16clean: 17 rm *.test 18 19 20