#115074 - HoodedNinjaMan - Fri Jan 12, 2007 8:16 pm
I hope I'm not still considered a novice to programming for this, but I'm having problems using makefile for the SGADE library, using the Devkit Advance compiler. I've read and re-read a lot of material and am fairly certain that I have all my files in the right places, but I can't seem to get rid of several errors when I go to make my .gba file.
(I grabbed the makefile file straight from the SGADE website and modified it accordingly)
The errors it returns are as follows:
error makefile 120: redefinition of target '/,'
error makefile 127: too many rules for target ')'
error makefile 129: no match found for wildcard '(/*.d),)'
error makefile 129: command syntax error
error makefile 130: command syntax error
error makefile 131: command syntax error
If anyone can help me resolve these errors, I would greatly appreciate it.
PS: If I put this in the wrong section, help me move it or something. Everyone's new somewhere at some point in time, you know?
Edit: here's the makefile that I'm using
_________________
Light travels faster than sound. That is why some people appear bright until you hear them speak.
Last edited by HoodedNinjaMan on Fri Jan 12, 2007 9:12 pm; edited 1 time in total
(I grabbed the makefile file straight from the SGADE website and modified it accordingly)
The errors it returns are as follows:
error makefile 120: redefinition of target '/,'
error makefile 127: too many rules for target ')'
error makefile 129: no match found for wildcard '(/*.d),)'
error makefile 129: command syntax error
error makefile 130: command syntax error
error makefile 131: command syntax error
If anyone can help me resolve these errors, I would greatly appreciate it.
PS: If I put this in the wrong section, help me move it or something. Everyone's new somewhere at some point in time, you know?
Edit: here's the makefile that I'm using
Code: |
# -----------------------------------------------------------------------------
# # This file contains the build instructions for the SGADE library. In order to # use it you need to change the CMP_DIR to the location of the GBA toolchain on # your computer. # # $Id: Makefile,v 1.7 2005/07/10 05:53:52 mprice Exp $ # # ----------------------------------------------------------------------------- PROJECT = PearlHarbor # ----------------------------------------------------------------------------- # Base directory for the GBA compiler. Replace this with wherever # you have put it. # ----------------------------------------------------------------------------- CMP_DIR = c:/devkitadv # ----------------------------------------------------------------------------- # Base directory for the SGADE. Replace this with wherever you have put the # SGADE source on your computer. # ----------------------------------------------------------------------------- SGADE_DIR = .. # ----------------------------------------------------------------------------- # MVB2 include directory. This is ignored if you don't use MBV2 specific stuff # like console debugging in your code. # ----------------------------------------------------------------------------- MBV2_INC_DIR = /usr/local/gba/mb/include # ----------------------------------------------------------------------------- # Source, object, and library directories. # ----------------------------------------------------------------------------- INCLUDE_DIR = $(SGADE_DIR)/include SRC_DIR = $(SGADE_DIR)/source O_DIR = $(SGADE_DIR)/build/intermediate LIB_DIR = $(SGADE_DIR)/lib # ----------------------------------------------------------------------------- # The compiler flags. # ----------------------------------------------------------------------------- GCC_FLAGS = -I $(INCLUDE_DIR) -I $(MBV2_INC_DIR) -g \ -Wall -MMD -fverbose-asm -mthumb -mthumb-interwork GCC_ARM_FLAGS = -I $(INCLUDE_DIR) -I $(MBV2_INC_DIR) -g \ -Wall -MMD -fverbose-asm -marm -mthumb-interwork GCC_S_FLAGS = -I $(INCLUDE_DIR) -I $(MBV2_INC_DIR) -g \ -Wall -fverbose-asm -marm -mthumb-interwork # ----------------------------------------------------------------------------- # All the object files to be built. # ----------------------------------------------------------------------------- O_FILES_FROM_C = \ SoBkg.o \ SoBkgCreditScroll.o \ SoBkgConsole.o \ SoBkgFont.o \ SoBkgManager.o \ SoBkgMap.o \ SoBkgMemManager.o \ SoCamera.o \ SoDMA.o \ SoDebug.o \ SoDebugPrintf.o \ SoDisplay.o \ SoEffects.o \ SoFlashMem.o \ SoFont.o \ SoImage.o \ SoIntManager.o \ SoKeys.o \ SoMath.o \ SoMatrix.o \ SoMemManager.o \ SoMesh.o \ SoMeshCube.o \ SoMode4PolygonRasterizer.o \ SoMode4Renderer.o \ SoMultiPlayer.o \ SoPalette.o \ SoPolygon.o \ SoSound.o \ SoSprite.o \ SoSpriteAnimation.o \ SoSpriteManager.o \ SoSpriteMemManager.o \ SoSystem.o \ SoTables.o \ SoTimer.o \ SoTransform.o \ SoVector.o \ SoWindow.o \ SoTileSet.o O_FILES_FROM_S = \ SoIntManagerIntHandler.o \ SoMathDivide.o \ SoMode4RendererClear.o \ SoTileSetCopyFromLinearBuffer.o \ SoMode4PolygonRasterizerSolidTriangle.o //Redefinition of target '/,' occurs here O_FILES_FROM_S_FULL_PATH = $(addprefix $(O_DIR)/, $(O_FILES_FROM_S) ) O_FILES_FROM_C_FULL_PATH = $(addprefix $(O_DIR)/, $(O_FILES_FROM_C) ) O_FILES_FULL_PATH = $(O_FILES_FROM_S_FULL_PATH) $(O_FILES_FROM_C_FULL_PATH) # ----------------------------------------------------------------------------- # Build targets. # ----------------------------------------------------------------------------- all: $(LIB_DIR)/$(PROJECT).a $(LIB_DIR)/$(PROJECT).a: $(O_FILES_FULL_PATH) @echo Archiving object files to library $@ @$(CMP_DIR)/bin/ar -rcs $@ $(O_FILES_FULL_PATH) $(O_FILES_FROM_C_FULL_PATH): $(O_DIR)/%.o: $(SRC_DIR)/%.c @echo Making $@ @$(CMP_DIR)/bin/gcc -c $< -o $@ $(GCC_FLAGS) $(O_FILES_FROM_S_FULL_PATH): $(O_DIR)/%.o: $(SRC_DIR)/%.S @echo Making $@ @$(CMP_DIR)/bin/gcc -c $< -o $@ $(GCC_S_FLAGS) # ----------------------------------------------------------------------------- # Dependencies. They should be included before clean is defined (since it # removes them) and after GCC has run (since it creates them). # ----------------------------------------------------------------------------- //No match for wildcard occurrs here DEPS = $(wildcard $(O_DIR)/*.d) ifneq ($(DEPS),) include $(DEPS) endif .PHONY: clean clean: @echo Removing object and dependency files @$(RM) $(O_FILES_FULL_PATH) $(DEPS) rebuild: clean all |
_________________
Light travels faster than sound. That is why some people appear bright until you hear them speak.
Last edited by HoodedNinjaMan on Fri Jan 12, 2007 9:12 pm; edited 1 time in total