TOPDIR = ../.. include $(TOPDIR)/rules.mk CPPFLAGS += $(RFRTLIB_CFLAGS) $(RFLIB_CFLAGS) MODULES = \ box_q \ channel_q \ char_q \ digit_q \ int_q \ func_q \ letter_q \ string_q \ table_q \ vector_q \ word_q 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)