Makefile.in 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. TOOLCHAIN ?= /usr/local/pandora/arm-2009q3
  2. CROSS_COMPILE ?= $(TOOLCHAIN)/bin/arm-none-linux-gnueabi-
  3. PANDORA_LIBPATH ?= $(PREFIX)/lib
  4. PANDORA_INCPATH ?= $(PREFIX)/include
  5. CC = $(CROSS_COMPILE)gcc
  6. CXX = $(CROSS_COMPILE)g++
  7. AR = $(CROSS_COMPILE)ar
  8. OBJCOPY = $(CROSS_COMPILE)objcopy
  9. STRIP = $(CROSS_COMPILE)strip --strip-unneeded
  10. ARCH_CFLAGS = -march=armv7-a -mtune=cortex-a8 -fPIC -I$(PANDORA_INCPATH)
  11. ARCH_CXXFLAGS = $(ARCH_CFLAGS)
  12. ARCH_LDFLAGS = -L$(PANDORA_LIBPATH)
  13. LIBPNG_CFLAGS = -I$(PANDORA_INCPATH)/libpng12
  14. LIBPNG_LDFLAGS = -lpng12 -lz
  15. ifeq (${BUILD_LIBSDL2},)
  16. SDL_CFLAGS = $(shell $(TOOLCHAIN)/usr/bin/sdl-config --cflags)
  17. SDL_LDFLAGS = $(shell $(TOOLCHAIN)/usr/bin/sdl-config --libs)
  18. else
  19. SDL_CFLAGS = $(shell $(TOOLCHAIN)/usr/bin/sdl2-config --cflags)
  20. SDL_LDFLAGS = $(shell $(TOOLCHAIN)/usr/bin/sdl2-config --libs)
  21. endif
  22. DSOLDFLAGS = -shared
  23. DSOPRE = lib
  24. DSOPOST = .so
  25. DSORPATH = -Wl,-rpath,$(LIBDIR)
  26. DSOSONAME = -Wl,-soname,
  27. include arch/zip.inc