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

44 lines
798 B

  1. # Makefile to build the SDL library
  2. INCLUDE = -I./include
  3. CFLAGS = -g -O2 $(INCLUDE)
  4. AR = ar
  5. RANLIB = ranlib
  6. TARGET = libSDL.a
  7. SOURCES = \
  8. src/*.c \
  9. src/audio/*.c \
  10. src/audio/dummy/*.c \
  11. src/cpuinfo/*.c \
  12. src/events/*.c \
  13. src/file/*.c \
  14. src/haptic/*.c \
  15. src/haptic/dummy/*.c \
  16. src/joystick/*.c \
  17. src/joystick/dummy/*.c \
  18. src/loadso/dummy/*.c \
  19. src/power/*.c \
  20. src/filesystem/dummy/*.c \
  21. src/render/*.c \
  22. src/render/software/*.c \
  23. src/sensor/*.c \
  24. src/sensor/dummy/*.c \
  25. src/stdlib/*.c \
  26. src/thread/*.c \
  27. src/thread/generic/*.c \
  28. src/timer/*.c \
  29. src/timer/dummy/*.c \
  30. src/video/*.c \
  31. src/video/dummy/*.c \
  32. OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
  33. all: $(TARGET)
  34. $(TARGET): $(OBJECTS)
  35. $(AR) crv $@ $^
  36. $(RANLIB) $@
  37. clean:
  38. rm -f $(TARGET) $(OBJECTS)