Makefile.minimal
changeset 1484 b2b476a4a73c
child 1533 38c1eb6b0083
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile.minimal	Wed Mar 08 08:30:17 2006 +0000
     1.3 @@ -0,0 +1,38 @@
     1.4 +# Makefile to build the SDL library
     1.5 +
     1.6 +INCLUDE = -I./include
     1.7 +CFLAGS  = -g -O2 $(INCLUDE)
     1.8 +AR	= ar
     1.9 +RANLIB	= ranlib
    1.10 +
    1.11 +TARGET  = libSDL.a
    1.12 +SOURCES = \
    1.13 +	src/*.c \
    1.14 +	src/audio/*.c \
    1.15 +	src/cdrom/*.c \
    1.16 +	src/cpuinfo/*.c \
    1.17 +	src/events/*.c \
    1.18 +	src/file/*.c \
    1.19 +	src/joystick/*.c \
    1.20 +	src/stdlib/*.c \
    1.21 +	src/thread/*.c \
    1.22 +	src/timer/*.c \
    1.23 +	src/video/*.c \
    1.24 +	src/audio/disk/*.c \
    1.25 +	src/video/dummy/*.c \
    1.26 +	src/joystick/dummy/*.c \
    1.27 +	src/cdrom/dummy/*.c \
    1.28 +	src/thread/generic/*.c \
    1.29 +	src/timer/dummy/*.c \
    1.30 +	src/loadso/dummy/*.c \
    1.31 +
    1.32 +OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
    1.33 +
    1.34 +all: $(TARGET)
    1.35 +
    1.36 +$(TARGET): $(OBJECTS)
    1.37 +	$(AR) crv $@ $^
    1.38 +	$(RANLIB) $@
    1.39 +
    1.40 +clean:
    1.41 +	rm -f $(TARGET) $(OBJECTS)