idl_defines = -D__Bonobo_COMPILATION -D__Bonobo_Unknown_COMPILATION -D__Bonobo_GenericFactory_COMPILATION -D__Bonobo_Activation_types_COMPILATION files_h_common = Bonobo.h files_c_stubs = Bonobo-common.c Bonobo-stubs.c files_c_skels = Bonobo-skels.c files_hh_common = Bonobo-cpp.h files_hh_stubs = Bonobo-cpp-common.h Bonobo-cpp-stubs.h $(files_hh_common) #The skels use the stubs, so put common stuff in the stubs. files_hh_skels = Bonobo-cpp-skels.h files_cc_common = Bonobo-cpp.cc #This includes other .cc files. We don't use it. files_cc_stubs = Bonobo-cpp-common.cc Bonobo-cpp-stubs.cc files_cc_skels = Bonobo-cpp-skels.cc files_generated = $(files_h_common) $(files_c_stubs) $(files_c_skels) \ $(files_hh_stubs) $(files_hh_skels) $(files_cc_common) $(files_cc_stubs) $(files_cc_skels) $(files_generated): $(ORBIT_IDL) $(ORBIT_IDL) --headerguardprefix=BONOBOMM_ $(IDL_CFLAGS_BONOBO) $(IDLDIR_LIBBONOBO)/Bonobo.idl $(ORBIT_IDL) -lcpp $(idl_defines) $(IDL_CFLAGS_BONOBO) $(IDLDIR_LIBBONOBO)/Bonobo.idl all-local: $(files_generated) CLEANFILES = $(files_generated) lib_LTLIBRARIES = libbonobomm_generated_stubs-1.3.la libbonobomm_generated_skels-1.3.la libbonobomm_generated_stubs_1_3_la_SOURCES = $(files_cc_stubs) $(files_c_stubs) libbonobomm_generated_stubs_1_3_la_LDFLAGS = -version-info $(LIBBONOBOMM_SO_VERSION) libbonobomm_generated_stubs_1_3_la_includedir = $(includedir)/libbonobomm-2.0/bonobomm/generated libbonobomm_generated_stubs_1_3_la_include_HEADERS = $(files_hh_stubs) $(files_h_common) libbonobomm_generated_skels_1_3_la_SOURCES = $(files_cc_skels) $(files_c_skels) libbonobomm_generated_skels_1_3_la_LDFLAGS = -version-info $(LIBBONOBOMM_SO_VERSION) libbonobomm_generated_skels_1_3_la_includedir = $(includedir)/libbonobomm-2.0/bonobomm/generated libbonobomm_generated_skels_1_3_la_include_HEADERS = $(files_hh_skels) INCLUDES = $(LIBBONOBOMM_CFLAGS) #Don't distribute the generated files: BUILT_SOURCES=$(files_generated) #Surely there's a better way to do this?: dist-hook: cd $(distdir); rm -f $(files_generated)