equal
deleted
inserted
replaced
|
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/cdrom/*.c \ |
|
13 src/cpuinfo/*.c \ |
|
14 src/events/*.c \ |
|
15 src/file/*.c \ |
|
16 src/joystick/*.c \ |
|
17 src/stdlib/*.c \ |
|
18 src/thread/*.c \ |
|
19 src/timer/*.c \ |
|
20 src/video/*.c \ |
|
21 src/audio/disk/*.c \ |
|
22 src/video/dummy/*.c \ |
|
23 src/joystick/dummy/*.c \ |
|
24 src/cdrom/dummy/*.c \ |
|
25 src/thread/generic/*.c \ |
|
26 src/timer/dummy/*.c \ |
|
27 src/loadso/dummy/*.c \ |
|
28 |
|
29 OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g') |
|
30 |
|
31 all: $(TARGET) |
|
32 |
|
33 $(TARGET): $(OBJECTS) |
|
34 $(AR) crv $@ $^ |
|
35 $(RANLIB) $@ |
|
36 |
|
37 clean: |
|
38 rm -f $(TARGET) $(OBJECTS) |