TOPDIR = .. include $(TOPDIR)/rules.mk RFRT_MODULES = \ rf_arg \ rf_common \ rf_core \ rf_expr \ rf_macros \ rf_result \ rf_retval \ rf_stack \ rf_term \ rf_memory_chunk \ rf_types \ rf_parenth \ rf_char \ rf_word \ rf_short_int \ rf_integer \ rf_func \ rf_object \ rf_object_ref \ rf_box \ rf_vector \ rf_string \ rf_channel \ rf_table RFRT_SOURCES = $(RFRT_MODULES:=.cc) RFRT_HEADERS = $(RFRT_MODULES:=.hh) #RFRT_IHEADERS = $(RFRT_MODULES:=.ih) RFRT_OBJECTS = $(RFRT_MODULES:=.o) ALL_SOURCES = $(RFRT_SOURCES) DEPS = $(ALL_SOURCES:.cc=.dep) LIBRFRT = librfrt.a DISTFILES = Makefile DISTFILES += $(ALL_SOURCES) DISTFILES += $(RFRT_HEADERS) all:: $(LIBRFRT) CPPFLAGS += -I$(TOPDIR)/libp++ $(LIBRFRT): $(RFRT_OBJECTS) ar cru $@ $^ install:: all mkdir -p -m 0755 $(INSTALL_DIR)/lib \ install -m 0644 $(LIBRFRT) $(INSTALL_DIR)/lib/ uninstall:: all { \ cd $(INSTALL_DIR)/lib \ rm $(LIBRFRT) \ } clean:: rm -f $(LIBRFRT) *.o *.dep -include $(DEPS)