This is probably really simple. I want to compile something using SDL *and* Rlyeh's Minimal lib. Where do I stick the minimal.c in the SDL makefile? I'm using the makefile from GuyFawkes's demo (plus -lSDL_gfx for SDL_gfx):
I just need to make it compile minimal.c somewhere in there. Or perhaps some other way. It's driving me mad.. :blink: cheers
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 = -lSDL_gfx `$(SDL_BASE)sdl-config --libs`
SDLTEST_TARGET = demo.gpe
SDLTEST_OBJS = demo.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 *~
I just need to make it compile minimal.c somewhere in there. Or perhaps some other way. It's driving me mad.. :blink: cheers