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

61 lines
1.1 KiB

  1. # Makefile to build the SDL library
  2. CPPFLAGS = -I./include
  3. CFLAGS = -g -O2
  4. AR = ar
  5. RANLIB = ranlib
  6. TARGET = libSDL2.a
  7. TESTTARGET = libSDL2_test.a
  8. SOURCES = \
  9. src/*.c \
  10. src/atomic/*.c \
  11. src/audio/*.c \
  12. src/audio/dummy/*.c \
  13. src/cpuinfo/*.c \
  14. src/events/*.c \
  15. src/file/*.c \
  16. src/haptic/*.c \
  17. src/haptic/dummy/*.c \
  18. src/hidapi/*.c \
  19. src/joystick/*.c \
  20. src/joystick/dummy/*.c \
  21. src/loadso/dummy/*.c \
  22. src/power/*.c \
  23. src/filesystem/dummy/*.c \
  24. src/locale/*.c \
  25. src/locale/dummy/*.c \
  26. src/misc/*.c \
  27. src/misc/dummy/*.c \
  28. src/render/*.c \
  29. src/render/software/*.c \
  30. src/sensor/*.c \
  31. src/sensor/dummy/*.c \
  32. src/stdlib/*.c \
  33. src/libm/*.c \
  34. src/thread/*.c \
  35. src/thread/generic/*.c \
  36. src/timer/*.c \
  37. src/timer/dummy/*.c \
  38. src/video/*.c \
  39. src/video/yuv2rgb/*.c \
  40. src/video/dummy/*.c \
  41. TSOURCES = src/test/*.c
  42. OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
  43. TOBJECTS= $(shell echo $(TSOURCES) | sed -e 's,\.c,\.o,g')
  44. all: $(TARGET) $(TESTTARGET)
  45. $(TARGET): $(OBJECTS)
  46. $(AR) crv $@ $^
  47. $(RANLIB) $@
  48. $(TESTTARGET): $(TOBJECTS)
  49. $(AR) crv $@ $^
  50. $(RANLIB) $@
  51. clean:
  52. rm -f $(TARGET) $(TESTTARGET) $(OBJECTS) $(TOBJECTS)