1 DIRS = "" adt driver wrappergen ;
4 SOURCES += [ Wildcard $(PLUGIN_DIR)/$(d) : *.c *.h ] ;
7 actions RunBuiltinGenerator bind GENERATOR {
8 $(GENERATOR) $(>) > $(<)
11 rule BuiltinGenerator {
13 local source = [ SearchSource $(>) ] ;
14 local generator = [ SearchSource $(3) ] ;
15 local header = $(target) ;
16 Depends $(target) : $(generator) ;
17 Depends $(target) : $(source) ;
18 RunBuiltinGenerator $(target) : $(source) ;
19 GENERATOR on $(target) = $(generator) ;
22 Includes $(NP:G=) : $(header) ;
24 Clean clean : $(target) ;
28 BuiltinGenerator $(PLUGIN_DIR)/gen_builtins.h : $(PLUGIN_DIR)/builtins/builtins.c : $(PLUGIN_DIR)/create_builtins_h.sh ;
30 Application cparser : $(SOURCES) ;
31 IncludeDir cparser : libfirm/include libfirm/include/libfirm ;
32 IncludeDir cparser : $(PLUGIN_DIR) ;
33 CFlags cparser : -std=c99 ;
34 LinkWith cparser : firm ;
35 LFlags cparser : -lm ;