Makefile: Fix cc command not having include path
Fixes one set of build errors on macOS (clang vs. gcc difference?)
This commit is contained in:
@@ -45,11 +45,11 @@ src/decomp/mario/geo.inc.c: ./import-mario-geo.py
|
|||||||
./import-mario-geo.py
|
./import-mario-geo.py
|
||||||
|
|
||||||
$(BUILD_DIR)/%.o: %.c $(IMPORTED)
|
$(BUILD_DIR)/%.o: %.c $(IMPORTED)
|
||||||
@$(CC) $(CFLAGS) -MM -MP -MT $@ -MF $(BUILD_DIR)/$*.d $<
|
@$(CC) $(CFLAGS) -I src/decomp/include -MM -MP -MT $@ -MF $(BUILD_DIR)/$*.d $<
|
||||||
$(CC) -c $(CFLAGS) -I src/decomp/include -o $@ $<
|
$(CC) -c $(CFLAGS) -I src/decomp/include -o $@ $<
|
||||||
|
|
||||||
$(BUILD_DIR)/%.o: %.cpp $(IMPORTED)
|
$(BUILD_DIR)/%.o: %.cpp $(IMPORTED)
|
||||||
@$(CXX) $(CFLAGS) -MM -MP -MT $@ -MF $(BUILD_DIR)/$*.d $<
|
@$(CXX) $(CFLAGS) -I src/decomp/include -MM -MP -MT $@ -MF $(BUILD_DIR)/$*.d $<
|
||||||
$(CXX) -c $(CFLAGS) -I src/decomp/include -o $@ $<
|
$(CXX) -c $(CFLAGS) -I src/decomp/include -o $@ $<
|
||||||
|
|
||||||
$(LIB_FILE): $(O_FILES)
|
$(LIB_FILE): $(O_FILES)
|
||||||
|
|||||||
Reference in New Issue
Block a user