Makefile.minimal
author Sam Lantinga
Tue, 02 Dec 2008 17:14:04 +0000
changeset 2824 4dba7aa7ea77
parent 2713 0906692aa6a4
child 3170 b7a48f533966
permissions -rw-r--r--
Added slow but complete blit fallback
Don't try to RLE encode surfaces that have alpha channel and alpha modulation
Don't turn on blending when converting an RGB surface to RGBA format
Do turn on blending when converting colorkey to alpha channel
     1 # Makefile to build the SDL library
     2 
     3 INCLUDE = -I./include
     4 CFLAGS  = -g -O2 $(INCLUDE)
     5 AR	= ar
     6 RANLIB	= ranlib
     7 
     8 CONFIG_H = include/SDL_config.h
     9 TARGET  = libSDL.a
    10 SOURCES = \
    11 	src/*.c \
    12 	src/audio/*.c \
    13 	src/cdrom/*.c \
    14 	src/cpuinfo/*.c \
    15 	src/events/*.c \
    16 	src/file/*.c \
    17 	src/joystick/*.c \
    18 	src/haptic/*.c \
    19 	src/stdlib/*.c \
    20 	src/thread/*.c \
    21 	src/timer/*.c \
    22 	src/video/*.c \
    23 	src/audio/dummy/*.c \
    24 	src/video/dummy/*.c \
    25 	src/joystick/dummy/*.c \
    26 	src/haptic/dummy/*.c \
    27 	src/cdrom/dummy/*.c \
    28 	src/thread/generic/*.c \
    29 	src/timer/dummy/*.c \
    30 	src/loadso/dummy/*.c \
    31 
    32 OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
    33 
    34 all: $(TARGET)
    35 
    36 $(TARGET): $(CONFIG_H) $(OBJECTS)
    37 	$(AR) crv $@ $^
    38 	$(RANLIB) $@
    39 
    40 $(CONFIG_H):
    41 	cp $(CONFIG_H).default $(CONFIG_H)
    42 
    43 clean:
    44 	rm -f $(TARGET) $(OBJECTS)