ensure that build succeeds, even if $(DEVKITPPC)/bin is not on PATH

there is no need for it to be on the PATH, and with this simple change
it's never going to be a problem for building sdl-wii
This commit is contained in:
Gered 2016-10-24 18:05:13 -04:00
parent 10e5b7c00e
commit a8f0a0405e
6 changed files with 22 additions and 22 deletions

View file

@ -76,14 +76,14 @@ test-clean:
$(LIB_DIR)/libSDL.a: $(SDL_OBJS)
@echo Archiving $@
@-mkdir -p $(dir $@)
powerpc-eabi-ar crs $@ $(SDL_OBJS)
@$(DEVKITPPC)/bin/powerpc-eabi-ar crs $@ $(SDL_OBJS)
@echo ----
# How to build a DOL.
$(BIN_DIR)/%.dol: $(TEST_OBJ_DIR)/%.elf
@echo Creating DOL $@
@-mkdir -p $(dir $@)
elf2dol $< $@
@$(DEVKITPPC)/bin/elf2dol $< $@
@echo ----
# Compilation flags.
@ -99,4 +99,4 @@ LDFLAGS := $(COMMON_FLAGS) -L$(LIB_DIR) -L$(LIBOGC_LIB) -lSDL -lwiikeyboard -l
$(SDL_OBJ_DIR)/%.o: $(SDL_SRC_DIR)/%.c
@echo Compiling $<
@-mkdir -p $(dir $@)
powerpc-eabi-gcc $(CFLAGS) -c $< -o $@ $(PIPE_TO_SED)
@$(DEVKITPPC)/bin/powerpc-eabi-gcc $(CFLAGS) -c $< -o $@ $(PIPE_TO_SED)

View file

@ -41,7 +41,7 @@ clean:
$(LIB_DIR)/libSDL_gfx.a: $(OBJS)
@echo Archiving $@
@-mkdir -p $(dir $@)
@powerpc-eabi-ar crs $@ $(OBJS)
@$(DEVKITPPC)/bin/powerpc-eabi-ar crs $@ $(OBJS)
@echo ----
install: all
@ -66,4 +66,4 @@ CFLAGS := $(COMMON_FLAGS) $(INCLUDES) $(DEFINES)
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.c
@echo Compiling $<
@-mkdir -p $(dir $@)
@powerpc-eabi-gcc $(CFLAGS) -c $< -o $@ $(PIPE_TO_SED)
@$(DEVKITPPC)/bin/powerpc-eabi-gcc $(CFLAGS) -c $< -o $@ $(PIPE_TO_SED)

View file

@ -61,7 +61,7 @@ test-install: $(TEST_DOLS)
$(LIB_DIR)/libSDL_image.a: $(OBJS)
@echo Archiving $@
@-mkdir -p $(dir $@)
@powerpc-eabi-ar crs $@ $(OBJS)
@$(DEVKITPPC)/bin/powerpc-eabi-ar crs $@ $(OBJS)
@echo ----
# How to build a DOL.
@ -69,7 +69,7 @@ $(BIN_DIR)/%.dol: $(TEST_OBJ_DIR)/%.elf
@echo Creating DOL $@
@-mkdir -p $(dir $@)
#powerpc-eabi-objcopy -O binary $< $@
elf2dol $< $@
@$(DEVKITPPC)/bin/elf2dol $< $@
@echo ----
# How to copy the header file
@ -95,7 +95,7 @@ LDFLAGS := $(COMMON_FLAGS) -L$(LIB_DIR) -L$(LIBOGC_LIB) -lSDL_image -lSDL -lpn
$(TEST_OBJ_DIR)/%.elf: $(TEST_OBJ_DIR)/%.o $(LIB_DIR)/libSDL_image.a $(DEVKITPRO)/libSDL/lib/libSDL.a
@echo Linking $@
@-mkdir -p $(dir $@)
powerpc-eabi-g++ -o $@ $< $(LDFLAGS)
@$(DEVKITPPC)/bin/powerpc-eabi-g++ -o $@ $< $(LDFLAGS)
#keep elf for debugging
#cp $@ /tmp/elf
@ -103,10 +103,10 @@ $(TEST_OBJ_DIR)/%.elf: $(TEST_OBJ_DIR)/%.o $(LIB_DIR)/libSDL_image.a $(DEVKITPRO
$(TEST_OBJ_DIR)/%.o: $(TEST_SRC_DIR)/showimage.c
@echo Compiling $<
@-mkdir -p $(dir $@)
powerpc-eabi-gcc $(CFLAGS) -c $< -o $@ $(PIPE_TO_SED)
@$(DEVKITPPC)/bin/powerpc-eabi-gcc $(CFLAGS) -c $< -o $@ $(PIPE_TO_SED)
# How to compile C file (SDL library).
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.c
@echo Compiling $<
@-mkdir -p $(dir $@)
@powerpc-eabi-gcc $(CFLAGS) -c $< -o $@ $(PIPE_TO_SED)
@$(DEVKITPPC)/bin/powerpc-eabi-gcc $(CFLAGS) -c $< -o $@ $(PIPE_TO_SED)

View file

@ -63,14 +63,14 @@ install: all
$(LIB_DIR)/libSDL_mixer.a: $(OBJS)
@echo Archiving $@
@-mkdir -p $(dir $@)
@powerpc-eabi-ar crs $@ $(OBJS)
@$(DEVKITPPC)/bin/powerpc-eabi-ar crs $@ $(OBJS)
@echo ----
# How to build a DOL.
$(BIN_DIR)/%.dol: $(TEST_OBJ_DIR)/%.elf
@echo Creating DOL $@
@-mkdir -p $(dir $@)
elf2dol $< $@
@$(DEVKITPPC)/bin/elf2dol $< $@
@echo ----
# How to copy a header file
@ -99,7 +99,7 @@ LDFLAGS := $(COMMON_FLAGS) -L$(LIB_DIR) -L$(LIBOGC_LIB) -L$(DEVKITPRO)/libsmpe
$(TEST_OBJ_DIR)/%.elf: $(TEST_OBJ_DIR)/%.o $(LIB_DIR)/libSDL_mixer.a $(DEVKITPRO)/libSDL/lib/libSDL.a
@echo Linking $@
@-mkdir -p $(dir $@)
powerpc-eabi-g++ -o $@ $< $(LDFLAGS)
@$(DEVKITPPC)/bin/powerpc-eabi-g++ -o $@ $< $(LDFLAGS)
#keep elf for debugging
#cp $@ /tmp/elf
@ -107,10 +107,10 @@ $(TEST_OBJ_DIR)/%.elf: $(TEST_OBJ_DIR)/%.o $(LIB_DIR)/libSDL_mixer.a $(DEVKITPRO
$(TEST_OBJ_DIR)/%.o: $(TEST_SRC_DIR)/playmus.c $(TEST_SRC_DIR)/playwave.c
@echo Compiling $<
@-mkdir -p $(dir $@)
powerpc-eabi-gcc $(CFLAGS) -c $< -o $@ $(PIPE_TO_SED)
@$(DEVKITPPC)/bin/powerpc-eabi-gcc $(CFLAGS) -c $< -o $@ $(PIPE_TO_SED)
# How to compile C file (SDL library).
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.c
@echo Compiling $<
@-mkdir -p $(dir $@)
@powerpc-eabi-gcc $(CFLAGS) -c $< -o $@ $(PIPE_TO_SED)
@$(DEVKITPPC)/bin/powerpc-eabi-gcc $(CFLAGS) -c $< -o $@ $(PIPE_TO_SED)

View file

@ -45,7 +45,7 @@ install: all
$(LIB_DIR)/libSDL_net.a: $(OBJS)
@echo Archiving $@
@-mkdir -p $(dir $@)
@powerpc-eabi-ar crs $@ $(OBJS)
@$(DEVKITPPC)/bin/powerpc-eabi-ar crs $@ $(OBJS)
@echo ----
# How to copy a header file
@ -71,4 +71,4 @@ LDFLAGS := $(COMMON_FLAGS) -L$(LIB_DIR) -L$(LIBOGC_LIB) -lSDL -lfat -lwiiuse -
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.c
@echo Compiling $<
@-mkdir -p $(dir $@)
@powerpc-eabi-gcc $(CFLAGS) -c $< -o $@ $(PIPE_TO_SED)
@$(DEVKITPPC)/bin/powerpc-eabi-gcc $(CFLAGS) -c $< -o $@ $(PIPE_TO_SED)

View file

@ -62,14 +62,14 @@ install: all
$(LIB_DIR)/libSDL_ttf.a: $(OBJS)
@echo Archiving $@
@-mkdir -p $(dir $@)
@powerpc-eabi-ar crs $@ $(OBJS)
@$(DEVKITPPC)/bin/powerpc-eabi-ar crs $@ $(OBJS)
@echo ----
# How to build a DOL.
$(BIN_DIR)/%.dol: $(TEST_OBJ_DIR)/%.elf
@echo Creating DOL $@
@-mkdir -p $(dir $@)
elf2dol $< $@
@$(DEVKITPPC)/bin/elf2dol $< $@
@echo ----
# How to copy a header file.
@ -91,7 +91,7 @@ LDFLAGS := $(COMMON_FLAGS) -L$(LIB_DIR) -L$(LIBOGC_LIB) -lSDL_ttf -lSDL -lfree
$(TEST_OBJ_DIR)/%.elf: $(TEST_OBJ_DIR)/%.o $(LIB_DIR)/libSDL_ttf.a $(DEVKITPRO)/libSDL/lib/libSDL.a
@echo Linking $@
@-mkdir -p $(dir $@)
powerpc-eabi-g++ -o $@ $< $(LDFLAGS)
@$(DEVKITPPC)/bin/powerpc-eabi-g++ -o $@ $< $(LDFLAGS)
#keep elf for debugging
#cp $@ /tmp/elf
@ -99,10 +99,10 @@ $(TEST_OBJ_DIR)/%.elf: $(TEST_OBJ_DIR)/%.o $(LIB_DIR)/libSDL_ttf.a $(DEVKITPRO)/
$(TEST_OBJ_DIR)/%.o: $(TEST_SRC_DIR)/showfont.c
@echo Compiling $<
@-mkdir -p $(dir $@)
powerpc-eabi-gcc $(CFLAGS) -c $< -o $@ $(PIPE_TO_SED)
@$(DEVKITPPC)/bin/powerpc-eabi-gcc $(CFLAGS) -c $< -o $@ $(PIPE_TO_SED)
# How to compile C file (SDL library).
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.c
@echo Compiling $<
@-mkdir -p $(dir $@)
@powerpc-eabi-gcc $(CFLAGS) -c $< -o $@ $(PIPE_TO_SED)
@$(DEVKITPPC)/bin/powerpc-eabi-gcc $(CFLAGS) -c $< -o $@ $(PIPE_TO_SED)