Makefile for checking syntax of openFrameworks application


/ Published in: Makefile
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.