Makefile.minimal
author Sam Lantinga <slouken@libsdl.org>
Mon, 09 Jan 2017 11:58:01 -0800
changeset 10802 6afc9b833867
parent 7667 be1cc6f55840
child 12130 24142c5073a4
permissions -rw-r--r--
We only need the first few keymaps corresponding to the following constants:
K_NORMTAB, K_SHIFTTAB, K_ALTTAB, K_ALTSHIFTTAB

In the normal case we'll load all the keymaps from the kernel, but this reduces the size of the SDL library for the fallback case when we can't get to the tty.
     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 TARGET  = libSDL.a
     9 SOURCES = \
    10 	src/*.c \
    11 	src/audio/*.c \
    12 	src/audio/dummy/*.c \
    13 	src/cpuinfo/*.c \
    14 	src/events/*.c \
    15 	src/file/*.c \
    16 	src/haptic/*.c \
    17 	src/haptic/dummy/*.c \
    18 	src/joystick/*.c \
    19 	src/joystick/dummy/*.c \
    20 	src/loadso/dummy/*.c \
    21 	src/power/*.c \
    22 	src/filesystem/dummy/*.c \
    23 	src/render/*.c \
    24 	src/render/software/*.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 
    33 OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
    34 
    35 all: $(TARGET)
    36 
    37 $(TARGET): $(OBJECTS)
    38 	$(AR) crv $@ $^
    39 	$(RANLIB) $@
    40 
    41 clean:
    42 	rm -f $(TARGET) $(OBJECTS)