TOPDIR = ../.. include $(TOPDIR)/rules.mk CPPFLAGS += $(RFRTLIB_CFLAGS) $(RFLIB_CFLAGS) #MODULES = \ print \ write \ print_e_ \ write_e_ \ read_m_char \ read_m_line \ read \ channel \ open_file \ close_channel \ std_channels \ eof_q_ MODULES = \ print \ write \ print_e_ \ write_e_ \ channel \ std_channels \ StdIO \ erase_file \ prim_open_file \ prim_close_channel \ prim_read SOURCES = $(addsuffix .cc, $(MODULES)) OBJECTS = $(addsuffix .o, $(MODULES)) DEPS = $(addsuffix .dep, $(MODULES)) all:: module.list module.list: $(OBJECTS) echo $^ >module.list clean:: rm -rf *.o *.dep module.list -include $(DEPS)