Makefile.minimal 756 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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/stdlib/*.c \
  24. src/thread/*.c \
  25. src/thread/generic/*.c \
  26. src/timer/*.c \
  27. src/timer/dummy/*.c \
  28. src/video/*.c \
  29. src/video/dummy/*.c \
  30. OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
  31. all: $(TARGET)
  32. $(TARGET): $(OBJECTS)
  33. $(AR) crv $@ $^
  34. $(RANLIB) $@
  35. clean:
  36. rm -f $(TARGET) $(OBJECTS)