TOPDIR = .. include $(TOPDIR)/rules.mk PROGRAMS = rfpc all:: $(PROGRAMS) RFPC_MODULES = \ rfpc \ rfp_lex \ rfp_parse \ rfp_compile \ rfp_err \ rfp_src \ rfp_asail \ rfp_asail_cpp \ rfp_asail_tpp \ rfp_asail_java \ rfp_asail_jbc \ rfp_as2as \ rfp_asail2asail \ rfp_check \ rfp_format \ rfp_helper \ rfp_vars \ rfp_const \ rfp_clashes \ rfp_debug \ NativeJava RFPC_SOURCES = $(RFPC_MODULES:=.cc) RFPC_OBJECTS = $(RFPC_MODULES:=.o) PROGRAMS_EXE = $(PROGRAMS:=$(EXE_SUFFIX)) ALL_SOURCES = $(sort $(RFPC_SOURCES)) DISTFILES = Makefile DISTFILES += $(ALL_SOURCES) CPPFLAGS += $(RFRTLIB_CFLAGS) $(RFLIB_CFLAGS) rfpc.cc: Makefile $(CONFIG) sed 's?\(.*RFP_Default_Boot_Path =\).*?\1 (Char::create_expr ("$(INSTALL_DIR)/lib/refal-plus")) ();?' \ $@ > $@.tmp mv $@.tmp $@ rfpc: $(RFPC_OBJECTS) $(LIBRF) $(LIBRFRT) $(LIBPXX) clean:: rm -f $(PROGRAMS_EXE) *.o *.s *.dep install:: all mkdir -p -m 0755 $(INSTALL_DIR)/bin install -m 0755 $(PROGRAMS_EXE) $(INSTALL_DIR)/bin/ #-include $(DEPS)