Welcome! Log In Create A New Profile

Advanced

Makefile Help

Posted by pinball Wizard 
Makefile Help
December 31, 2008 12:49AM
i am brand new to getting in and programming for the wii so if someone could help me change this makefile to export to wii standards that would be great.


# make file generated by gryphel build system

mk_CallC = cc
mk_COptions = -c

TheDefaultOutput : Project Vii

bld/MYOSGLUE.o : src/MYOSGLUE.c src/PLATGLUE.h src/STRCONST.h src/CONTROLM.h src/CNFGGLOB.h
	$(mk_CallC) "src/MYOSGLUE.c" -o "bld/MYOSGLUE.o" $(mk_COptions)
bld/GLOBGLUE.o : src/GLOBGLUE.c src/CNFGGLOB.h
	$(mk_CallC) "src/GLOBGLUE.c" -o "bld/GLOBGLUE.o" $(mk_COptions)
bld/ADDRSPAC.o : src/ADDRSPAC.c src/CNFGGLOB.h
	$(mk_CallC) "src/ADDRSPAC.c" -o "bld/ADDRSPAC.o" $(mk_COptions)
bld/PROGMAIN.o : src/PROGMAIN.c src/CNFGGLOB.h
	$(mk_CallC) "src/PROGMAIN.c" -o "bld/PROGMAIN.o" $(mk_COptions)
bld/MINEM68K.o : src/MINEM68K.c src/CNFGGLOB.h
	$(mk_CallC) "src/MINEM68K.c" -o "bld/MINEM68K.o" $(mk_COptions)
bld/VIAEMDEV.o : src/VIAEMDEV.c src/CNFGGLOB.h
	$(mk_CallC) "src/VIAEMDEV.c" -o "bld/VIAEMDEV.o" $(mk_COptions)
bld/IWMEMDEV.o : src/IWMEMDEV.c src/CNFGGLOB.h
	$(mk_CallC) "src/IWMEMDEV.c" -o "bld/IWMEMDEV.o" $(mk_COptions)
bld/SCCEMDEV.o : src/SCCEMDEV.c src/CNFGGLOB.h
	$(mk_CallC) "src/SCCEMDEV.c" -o "bld/SCCEMDEV.o" $(mk_COptions)
bld/RTCEMDEV.o : src/RTCEMDEV.c src/CNFGGLOB.h
	$(mk_CallC) "src/RTCEMDEV.c" -o "bld/RTCEMDEV.o" $(mk_COptions)
bld/ROMEMDEV.o : src/ROMEMDEV.c src/CNFGGLOB.h
	$(mk_CallC) "src/ROMEMDEV.c" -o "bld/ROMEMDEV.o" $(mk_COptions)
bld/SCSIEMDV.o : src/SCSIEMDV.c src/CNFGGLOB.h
	$(mk_CallC) "src/SCSIEMDV.c" -o "bld/SCSIEMDV.o" $(mk_COptions)
bld/SONYEMDV.o : src/SONYEMDV.c src/CNFGGLOB.h
	$(mk_CallC) "src/SONYEMDV.c" -o "bld/SONYEMDV.o" $(mk_COptions)
bld/SNDEMDEV.o : src/SNDEMDEV.c src/CNFGGLOB.h
	$(mk_CallC) "src/SNDEMDEV.c" -o "bld/SNDEMDEV.o" $(mk_COptions)
bld/SCRNEMDV.o : src/SCRNEMDV.c src/CNFGGLOB.h
	$(mk_CallC) "src/SCRNEMDV.c" -o "bld/SCRNEMDV.o" $(mk_COptions)
bld/KBRDEMDV.o : src/KBRDEMDV.c src/CNFGGLOB.h
	$(mk_CallC) "src/KBRDEMDV.c" -o "bld/KBRDEMDV.o" $(mk_COptions)
bld/MOUSEMDV.o : src/MOUSEMDV.c src/CNFGGLOB.h
	$(mk_CallC) "src/MOUSEMDV.c" -o "bld/MOUSEMDV.o" $(mk_COptions)

ObjFiles = \
	bld/MYOSGLUE.o \
	bld/GLOBGLUE.o \
	bld/ADDRSPAC.o \
	bld/PROGMAIN.o \
	bld/MINEM68K.o \
	bld/VIAEMDEV.o \
	bld/IWMEMDEV.o \
	bld/SCCEMDEV.o \
	bld/RTCEMDEV.o \
	bld/ROMEMDEV.o \
	bld/SCSIEMDV.o \
	bld/SONYEMDV.o \
	bld/SNDEMDEV.o \
	bld/SCRNEMDV.o \
	bld/KBRDEMDV.o \
	bld/MOUSEMDV.o \


minivmac : $(ObjFiles)
	cc \
		-o "minivmac" -L/usr/X11R6/lib -lXext -lX11 \
		$(ObjFiles)

clean :
	rm -f $(ObjFiles)
	rm -f "minivmac"



Edited 2 time(s). Last edit at 12/31/2008 12:50AM by pinball Wizard.
Re: Makefile Help
December 31, 2008 02:20PM
It just needs new linker and compiler flags, start using the makefile official compiler macros and include the build kit makefile.
But it surely can be shortened with some wildcards.
Re: Makefile Help
December 31, 2008 04:15PM
I need to go back and reread some programming books. What you just said sounds familiar but made no sense.
Re: Makefile Help
December 31, 2008 04:18PM
You don't need to read books, you need to read man and info pages.
Sorry, only registered users may post in this forum.

Click here to login