xlib_playground

Xlib playground for experiments.
Log | Files | Refs

Makefile (317B)


      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 -lm
      4 IN=*.c
      5 OUT=main
      6 
      7 TD=test
      8 TIN=$(TD)/*.c
      9 
     10 prog: $(IN)
     11 	$(CC) $(INCS) $(CFLAGS) -o $(OUT) $(IN) $(LIBS)
     12 
     13 run: prog
     14 	./$(OUT)
     15 
     16 test: prog $(TIN)
     17 	make -C $(TD) test
     18 
     19 clean:
     20 	rm -f $(OUT)