Makefile 419 B

12345678910111213141516
  1. CFLAGS = -g -Wall -I../../../csrc/ -ICImg
  2. CXXFLAGS = $(CFLAGS)
  3. LDFLAGS = -lpthread
  4. CSRC = $(wildcard ls ../../../csrc/*.c) ../common/u8x8_d_bitmap.c
  5. CPPSRC = main.cpp
  6. OBJ = $(CSRC:.c=.o) $(CPPSRC:.cpp=.o)
  7. cimg_annotate_screenshot: $(OBJ) CImg
  8. $(CXX) $(CFLAGS) $(LDFLAGS) $(OBJ) -o cimg_annotate_screenshot
  9. CImg:
  10. git clone --depth=1 https://github.com/dtschump/CImg.git
  11. clean:
  12. -rm $(OBJ) cimg_annotate_screenshot