Makefile.minimal
author Sam Lantinga <slouken@libsdl.org>
Wed, 12 Jan 2011 15:42:26 -0800
changeset 4986 8431f59485d0
parent 3170 b7a48f533966
child 5310 a9945ce48999
permissions -rw-r--r--
Renderer didn't advertise texture format SDL_PIXELFORMAT_ABGR8888
     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/power/*.c \
    24 	src/audio/dummy/*.c \
    25 	src/video/dummy/*.c \
    26 	src/joystick/dummy/*.c \
    27 	src/haptic/dummy/*.c \
    28 	src/cdrom/dummy/*.c \
    29 	src/thread/generic/*.c \
    30 	src/timer/dummy/*.c \
    31 	src/loadso/dummy/*.c \
    32 
    33 OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
    34 
    35 all: $(TARGET)
    36 
    37 $(TARGET): $(CONFIG_H) $(OBJECTS)
    38 	$(AR) crv $@ $^
    39 	$(RANLIB) $@
    40 
    41 $(CONFIG_H):
    42 	cp $(CONFIG_H).default $(CONFIG_H)
    43 
    44 clean:
    45 	rm -f $(TARGET) $(OBJECTS)