Makefile.minimal
changeset 5310 a9945ce48999
parent 3170 b7a48f533966
child 7667 be1cc6f55840
equal deleted inserted replaced
5309:da080d3247c9 5310:a9945ce48999
     3 INCLUDE = -I./include
     3 INCLUDE = -I./include
     4 CFLAGS  = -g -O2 $(INCLUDE)
     4 CFLAGS  = -g -O2 $(INCLUDE)
     5 AR	= ar
     5 AR	= ar
     6 RANLIB	= ranlib
     6 RANLIB	= ranlib
     7 
     7 
     8 CONFIG_H = include/SDL_config.h
       
     9 TARGET  = libSDL.a
     8 TARGET  = libSDL.a
    10 SOURCES = \
     9 SOURCES = \
    11 	src/*.c \
    10 	src/*.c \
    12 	src/audio/*.c \
    11 	src/audio/*.c \
    13 	src/cdrom/*.c \
    12 	src/audio/dummy/*.c \
    14 	src/cpuinfo/*.c \
    13 	src/cpuinfo/*.c \
    15 	src/events/*.c \
    14 	src/events/*.c \
    16 	src/file/*.c \
    15 	src/file/*.c \
       
    16 	src/haptic/*.c \
       
    17 	src/haptic/dummy/*.c \
    17 	src/joystick/*.c \
    18 	src/joystick/*.c \
    18 	src/haptic/*.c \
    19 	src/joystick/dummy/*.c \
       
    20 	src/loadso/dummy/*.c \
       
    21 	src/power/*.c \
       
    22 	src/render/*.c \
       
    23 	src/render/software/*.c \
    19 	src/stdlib/*.c \
    24 	src/stdlib/*.c \
    20 	src/thread/*.c \
    25 	src/thread/*.c \
       
    26 	src/thread/generic/*.c \
    21 	src/timer/*.c \
    27 	src/timer/*.c \
       
    28 	src/timer/dummy/*.c \
    22 	src/video/*.c \
    29 	src/video/*.c \
    23 	src/power/*.c \
       
    24 	src/audio/dummy/*.c \
       
    25 	src/video/dummy/*.c \
    30 	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 
    31 
    33 OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
    32 OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
    34 
    33 
    35 all: $(TARGET)
    34 all: $(TARGET)
    36 
    35 
    37 $(TARGET): $(CONFIG_H) $(OBJECTS)
    36 $(TARGET): $(OBJECTS)
    38 	$(AR) crv $@ $^
    37 	$(AR) crv $@ $^
    39 	$(RANLIB) $@
    38 	$(RANLIB) $@
    40 
    39 
    41 $(CONFIG_H):
       
    42 	cp $(CONFIG_H).default $(CONFIG_H)
       
    43 
       
    44 clean:
    40 clean:
    45 	rm -f $(TARGET) $(OBJECTS)
    41 	rm -f $(TARGET) $(OBJECTS)