Makefile (249B)
1 INCS=-I/usr/X11R6/include 2 CFLAGS=-Wall -W -Wextra -Wpointer-arith -Wbad-function-cast -std=c11 3 LIBS=-L/usr/X11R6/lib -lX11 -lXext 4 IN=*.c 5 OUT=main 6 7 all: $(IN) 8 $(CC) $(INCS) $(CFLAGS) -o $(OUT) $(IN) $(LIBS) 9 10 run: all 11 ./$(OUT) 12 13 clean: 14 rm -f $(OUT)