MakeList

MakeList prepares a part of makefile from file lists. This utility is used in the CCore build system.


CCore-MakeList.exe <obj-path> <cpp-list-file-name> <s-list-file-name>

The first command line parameter is the obj path.

The second is the name of the file with a .cpp file list.

The third is the name of the file with a .s file list.

The utility creates the output file Makefile.files. It looks like:

OBJ_LIST = \
obj/main.o \


ASM_LIST = \
obj/main.s \


DEP_LIST = \
obj/main.dep \


ASM_OBJ_LIST = \


include $(RULES_FILE)


obj/main.o : ./main.cpp
	$(CC) $(CCOPT) $< -o $@



obj/main.s : ./main.cpp
	$(CC) -S $(CCOPT) $< -o $@



obj/main.dep : ./main.cpp
	$(CC) $(CCOPT) -MM -MT $(OBJ_PATH)/main.o $< -MF $@





ifneq ($(MAKECMDGOALS),clean)

include $(DEP_FILE)

endif