2006-03-08 08:30:17 +00:00
|
|
|
# Makefile to build the SDL library
|
|
|
|
|
|
|
|
INCLUDE = -I./include
|
|
|
|
CFLAGS = -g -O2 $(INCLUDE)
|
|
|
|
AR = ar
|
|
|
|
RANLIB = ranlib
|
|
|
|
|
2006-03-23 21:28:33 +00:00
|
|
|
CONFIG_H = include/SDL_config.h
|
2006-03-08 08:30:17 +00:00
|
|
|
TARGET = libSDL.a
|
|
|
|
SOURCES = \
|
|
|
|
src/*.c \
|
|
|
|
src/audio/*.c \
|
|
|
|
src/cdrom/*.c \
|
|
|
|
src/cpuinfo/*.c \
|
|
|
|
src/events/*.c \
|
|
|
|
src/file/*.c \
|
|
|
|
src/joystick/*.c \
|
2008-08-25 09:55:03 +00:00
|
|
|
src/haptic/*.c \
|
2006-03-08 08:30:17 +00:00
|
|
|
src/stdlib/*.c \
|
|
|
|
src/thread/*.c \
|
|
|
|
src/timer/*.c \
|
|
|
|
src/video/*.c \
|
2009-06-07 06:06:35 +00:00
|
|
|
src/power/*.c \
|
2006-03-14 16:19:32 +00:00
|
|
|
src/audio/dummy/*.c \
|
2006-03-08 08:30:17 +00:00
|
|
|
src/video/dummy/*.c \
|
|
|
|
src/joystick/dummy/*.c \
|
2008-08-25 09:55:03 +00:00
|
|
|
src/haptic/dummy/*.c \
|
2006-03-08 08:30:17 +00:00
|
|
|
src/cdrom/dummy/*.c \
|
|
|
|
src/thread/generic/*.c \
|
|
|
|
src/timer/dummy/*.c \
|
|
|
|
src/loadso/dummy/*.c \
|
|
|
|
|
|
|
|
OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
|
|
|
|
|
|
|
|
all: $(TARGET)
|
|
|
|
|
2006-03-23 21:28:33 +00:00
|
|
|
$(TARGET): $(CONFIG_H) $(OBJECTS)
|
2006-03-08 08:30:17 +00:00
|
|
|
$(AR) crv $@ $^
|
|
|
|
$(RANLIB) $@
|
|
|
|
|
2006-03-23 21:28:33 +00:00
|
|
|
$(CONFIG_H):
|
|
|
|
cp $(CONFIG_H).default $(CONFIG_H)
|
|
|
|
|
2006-03-08 08:30:17 +00:00
|
|
|
clean:
|
|
|
|
rm -f $(TARGET) $(OBJECTS)
|