🛠️🐜 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.

60 lines
1.5 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 = libSDL.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/joystick/*.c \
  25. ./src/joystick/linux/*.c \
  26. ./src/loadso/dlopen/*.c \
  27. ./src/power/*.c \
  28. ./src/sensor/*.c \
  29. ./src/sensor/dummy/*.c \
  30. ./src/stdlib/*.c \
  31. ./src/thread/*.c \
  32. ./src/thread/pthread/SDL_syscond.c \
  33. ./src/thread/pthread/SDL_sysmutex.c \
  34. ./src/thread/pthread/SDL_syssem.c \
  35. ./src/thread/pthread/SDL_systhread.c \
  36. ./src/timer/*.c \
  37. ./src/timer/unix/*.c \
  38. ./src/video/*.c \
  39. ./src/video/dummy/*.c \
  40. ./src/video/pandora/SDL_pandora.o \
  41. ./src/video/pandora/SDL_pandora_events.o \
  42. ./src/video/x11/*.c \
  43. OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
  44. CONFIG_H = $(shell cp include/SDL_config_pandora.h include/SDL_config.h)
  45. all: $(TARGET)
  46. $(TARGET): $(CONFIG_H) $(OBJECTS)
  47. $(AR) crv $@ $^
  48. $(RANLIB) $@
  49. clean:
  50. rm -f $(TARGET) $(OBJECTS)