comparison Makefile.minimal @ 1603:64710b9f3eeb

Fixed bug #171 SDL_config.h is no longer in CVS. Instead, configure will generate it for systems that use configure, and we always copy SDL_config.h.default to SDL_config.h before generating a snapshot or release archive. Also fixed a couple of uninstall issues.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 23 Mar 2006 21:28:33 +0000
parents 38c1eb6b0083
children a72a5f62d6b7
comparison
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)