1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
INC=/usr/include HT=x86_64 DOCP=do_cp INCLIB=$(INC)/../lib CC=clang CFLAGS= -I$(INC) -O3 -I.. NAME= mlx-test SRC = main.c OBJ = $(SRC:.c=.o) all :$(NAME) $(NAME) :$(OBJ) $(CC) -o $(NAME) $(OBJ) -L.. -lmlx -L$(INCLIB) -lXext -lX11 -lm -lbsd clean : rm -f $(NAME) $(OBJ) *~ core *.core re : clean all