PSyMastR
\m/O__O\m/
Ive read the doccumentation everywhere, and stuff. Im a big Java/php programmer, and by reading C code for about 5 min, I figured out how it works, and stuff. I setup the devkitGP2X on a windows PC fine, and it compiles the demo app. Now, I want to create my own stuff, ive written a program, but it wont compile, as the makefile keeps asking me for this demo.o file. I put in the demo.o file (renamed it to demo2.o) into the same directory as the program i want to compile, and now it tells me its the wrong object file or whatever. What should my makefile look like for that devkit so I dont have to use object files or are they a must, and if so, how can I make my own, as they look like precompiled code.
Jeff (AKA PSyMastR)
P.S. here is my current makefile code (default makefile)
Yes, I know what these lines do, and yes i know i can rename them and stuff...
SDLTEST_TARGET = demo2.gpe
SDLTEST_OBJS = demo2.o
Jeff (AKA PSyMastR)
P.S. here is my current makefile code (default makefile)
Code:
CROSS_COMPILE = C:/devkitGP2X/bin/arm-linux-
SDL_BASE = C:/devkitGP2X/bin/arm-linux-
LDFLAGS = -static
CC = $(CROSS_COMPILE)gcc
CXX = $(CROSS_COMPILE)g++
STRIP = $(CROSS_COMPILE)strip
CFLAGS = `$(SDL_BASE)sdl-config --cflags` -O2 -Wall -Werror
CXXFLAGS = `$(SDL_BASE)sdl-config --cflags` -O2 -Wall -Werror
LIBS = `$(SDL_BASE)sdl-config --libs`
SDLTEST_TARGET = demo2.gpe
SDLTEST_OBJS = demo2.o
all : $(SDLTEST_TARGET)
$(SDLTEST_TARGET) : $(SDLTEST_OBJS)
$(CXX) $(LDFLAGS) -o $(SDLTEST_TARGET) $(SDLTEST_OBJS) $(LIBS)
$(STRIP) $(SDLTEST_TARGET)
clean:
rm -f $(ALL_TARGETS) *.o *~
SDLTEST_TARGET = demo2.gpe
SDLTEST_OBJS = demo2.o