lundi 31 juillet 2017

Makefile, pattern rule with sub directory only work with the first dependence

here is my problem

SOURCES_FUNCTIONS=cJSON.c parallelisationUtilities.c
$(BUILD_DIR)/%.o : $(SOURCE_DIR)/%.c    
    $(CC) $(CFLAGS) -c $< -o $@ $(IFLAGS)

make: *** Aucune règle pour fabriquer la cible « parallelisationUtilities.o », nécessaire pour « build/mainFunction ». Arrêt

By placing parallelisationUtilities.c before cJSON.c in SOURCES_FUNCTIONS, i get the same error with cJSON.o. Fore sure, there are no missing files..

++ Michael

Aucun commentaire:

Enregistrer un commentaire