Blame view

build2/epsilon-master/build/struct_layout/Makefile 589 Bytes
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  products += apps/main.ast build/struct_layout/data.json
  
  .PHONY: apps_container_struct_layout
  OPEN = open
  
  ifeq ($(CXX),clang++)
  
  %.ast: %.cpp %.o
  	@echo "AST     $@"
  	@$(CXX) -fno-color-diagnostics -Xclang -fdump-record-layouts $(SFLAGS) $(CXXFLAGS) -MF /dev/null -c $< -o /dev/null > $@
  
  %.ast.json: %.ast
  	@echo "JSON    $@"
  	@cat $< | ruby build/struct_layout/ast_to_json.rb AppsContainer > $@
  
  apps_container_struct_layout: apps/main.ast.json
  	$(OPEN) build/struct_layout/visualization.html
  
  else
  
  apps_container_struct_layout:
  	@echo "Struct layout requires the use of Clang"
  
  endif