Commits

clach04  committed 0231586 Draft

Updated opendingux makefile to use DINGUX_SDK variables and cleanup sdl-config call that called native!

  • Participants
  • Parent commits b964016

Comments (0)

Files changed (1)

File Makefile.opendingux

-TOOLCHAINDIR := /dingux
-BINPATH := $(TOOLCHAINDIR)/bin
-LIBPATH := $(TOOLCHAINDIR)/lib
 
-INCLUDES := -I${TOOLCHAINDIR}/mipsel-linux-uclibc/include/SDL
+INCLUDES := 
 
-ARCH	:= mipsel-linux-uclibc-
-CC		:= ${BINPATH}/$(ARCH)g++
+ARCH	:= mipsel-linux-
+CC		:= $(ARCH)g++
 
-CFLAGS  := -O2 -Wall $(INCLUDES) $(shell $(BINPATH)/sdl-config --cflags)
-LDFLAGS := -O2 -Wall $(shell $(BINPATH)/sdl-config --libs) -lSDL_gfx -lSDL_image
+CFLAGS  := -O2 -Wall $(INCLUDES) $(shell ${DINGUX_SDK}/usr/bin/sdl-config --cflags)
+LDFLAGS := -O2 -Wall $(shell ${DINGUX_SDK}/usr/bin/sdl-config --libs) -lSDL_gfx -lSDL_image
 
 
-LIBS=-lm `sdl-config --libs` -lSDL_image -lSDL_ttf -lSDL_mixer
+LIBS=-lm `${DINGUX_SDK}/usr/bin/sdl-config --libs` -lSDL_image -lSDL_ttf -lSDL_mixer
 OBJS=sound.o collide.o ball.o game.o menu.o player.o randgen.o init.o main.o
 OUTPUT=battlepong.dge