/src/wrappers/Makefile
Makefile | 43 lines | 24 code | 11 blank | 8 comment | 0 complexity | bc33dc493347108dc1c8d6a5989efaef MD5 | raw file
1## Updates generated classes 2 3## Since the actual length of C types depends on the architecture the class 4## C_TYPES is generated everytime this Makefile is executed. Of course this makes 5## crosscompiling really difficoult but we can live with this known bug for a 6## while (Paolo 2013-04-09) 7 8LIBRARIES=common \ 9 ffi \ 10 posix \ 11 posix/dynamic-linking \ 12 readline \ 13 xml \ 14 zmq 15SUBMAKEFILES := $(shell find $(LIBRARIES) -name Makefile) 16 17 18## Not working wrappers: llvm 19 20## To be wrapped using GObject introspection framework: glib gobject gtk2 cairo gtk3 gdk3 gconf 21 22## Unfinished wrappers: gconf gda gdk2 gio gtk-math-view gtk-source-view gtk-unix-print json-glib qt4 xml zlib 23 24CASTXML=$(shell which castxml) 25GCCXML=$(shell which gccxml) 26 27.PHONY: subdirs $(LIBRARIES) clean 28 29update: $(LIBRARIES) 30 @echo Clusters that will be updated: $^ 31ifdef CASTXML 32 @echo using castxml 33else 34 @echo using gccxml 35endif 36 37clean: 38 @echo Removing generated files 39 @$(MAKE) -C $@/library/externals/generated clean 40 41$(LIBRARIES) : 42 @echo Updating generated classes of $@ 43 @$(MAKE) -C $@/library/externals/generated