🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.6 KiB

  1. # Makefile to build the pandora SDL library
  2. AR = arm-none-linux-gnueabi-ar
  3. RANLIB = arm-none-linux-gnueabi-ranlib
  4. CC = arm-none-linux-gnueabi-gcc
  5. CXX = arm-none-linux-gnueabi-g++
  6. STRIP = arm-none-linux-gnueabi-strip
  7. CFLAGS = -O3 -march=armv7-a -mcpu=cortex-a8 -mtune=cortex-a8 -mfloat-abi=softfp \
  8. -mfpu=neon -ftree-vectorize -ffast-math -fomit-frame-pointer -fno-strict-aliasing -fsingle-precision-constant \
  9. -I./include -I$(PNDSDK)/usr/include
  10. TARGET = libSDL2.a
  11. SOURCES =
  12. ./src/*.c \
  13. ./src/atomic/*.c \
  14. ./src/audio/*.c \
  15. ./src/audio/disk/*.c \
  16. ./src/audio/dsp/*.c \
  17. ./src/audio/dummy/*.c \
  18. ./src/cpuinfo/*.c \
  19. ./src/events/*.c \
  20. ./src/file/*.c \
  21. ./src/filesystem/unix/*.c \
  22. ./src/haptic/*.c \
  23. ./src/haptic/linux/*.c \
  24. ./src/hidapi/*.c \
  25. ./src/joystick/*.c \
  26. ./src/joystick/linux/*.c \
  27. ./src/loadso/dlopen/*.c \
  28. ./src/locale/*.c \
  29. ./src/locale/unix/*.c \
  30. ./src/misc/*.c \
  31. ./src/misc/unix/*.c \
  32. ./src/power/*.c \
  33. ./src/sensor/*.c \
  34. ./src/sensor/dummy/*.c \
  35. ./src/stdlib/*.c \
  36. ./src/thread/*.c \
  37. ./src/thread/pthread/SDL_syscond.c \
  38. ./src/thread/pthread/SDL_sysmutex.c \
  39. ./src/thread/pthread/SDL_syssem.c \
  40. ./src/thread/pthread/SDL_systhread.c \
  41. ./src/timer/*.c \
  42. ./src/timer/unix/*.c \
  43. ./src/video/*.c \
  44. ./src/video/yuv2rgb/*.c \
  45. ./src/video/dummy/*.c \
  46. ./src/video/x11/*.c \
  47. ./src/video/pandora/*.c
  48. OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
  49. CONFIG_H = $(shell cp include/SDL_config_pandora.h include/SDL_config.h)
  50. all: $(TARGET)
  51. $(TARGET): $(CONFIG_H) $(OBJECTS)
  52. $(AR) crv $@ $^
  53. $(RANLIB) $@
  54. clean:
  55. rm -f $(TARGET) $(OBJECTS)