Makefile.minimal
changeset 1603 64710b9f3eeb
parent 1533 38c1eb6b0083
child 2494 a72a5f62d6b7
equal deleted inserted replaced
1602:cd97a8e39874 1603:64710b9f3eeb
     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
     8 TARGET  = libSDL.a
     9 TARGET  = libSDL.a
     9 SOURCES = \
    10 SOURCES = \
    10 	src/*.c \
    11 	src/*.c \
    11 	src/audio/*.c \
    12 	src/audio/*.c \
    12 	src/cdrom/*.c \
    13 	src/cdrom/*.c \
    28 
    29 
    29 OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
    30 OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
    30 
    31 
    31 all: $(TARGET)
    32 all: $(TARGET)
    32 
    33 
    33 $(TARGET): $(OBJECTS)
    34 $(TARGET): $(CONFIG_H) $(OBJECTS)
    34 	$(AR) crv $@ $^
    35 	$(AR) crv $@ $^
    35 	$(RANLIB) $@
    36 	$(RANLIB) $@
    36 
    37 
       
    38 $(CONFIG_H):
       
    39 	cp $(CONFIG_H).default $(CONFIG_H)
       
    40 
    37 clean:
    41 clean:
    38 	rm -f $(TARGET) $(OBJECTS)
    42 	rm -f $(TARGET) $(OBJECTS)