TOPDIR = ../.. include $(TOPDIR)/rules.mk CPPFLAGS += $(RFRTLIB_CFLAGS) $(RFLIB_CFLAGS) MODULES = \ string \ string_length \ string_fill \ string_init \ string_ref \ string_set \ string_replace \ substring \ substring_fill 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)