Posted By

masahiroh on 09/01/10


Tagged

emacs openFrameworks Flymake


Versions (?)

Makefile for checking syntax of openFrameworks application


 / Published in: Makefile
 

Path: /some/where/openFrameworks/apps/examples/myProject/src/Makefile

  1. CC = gcc-4.2
  2. INCLUDE_DIRS := $(sort $(dir $(shell find ../../../../libs -name "*.h" && find ../../../../addons -name "*.h" && find . -name "*.h")))
  3. CFLAGS = -Wall -Wextra -fsyntax-only $(addprefix -I ,$(INCLUDE_DIRS))
  4.  
  5. .PHONY: check-syntax
  6. check-syntax:
  7. $(CC) -o null $(CFLAGS) $(CHK_SOURCES)

Report this snippet  

You need to login to post a comment.