Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Latest commit

 

History

History
41 lines (35 loc) · 728 Bytes

Makefile.minimal

File metadata and controls

41 lines (35 loc) · 728 Bytes
 
1
2
3
4
5
6
7
8
9
10
11
# Makefile to build the SDL library
INCLUDE = -I./include
CFLAGS = -g -O2 $(INCLUDE)
AR = ar
RANLIB = ranlib
TARGET = libSDL.a
SOURCES = \
src/*.c \
src/audio/*.c \
Feb 16, 2011
Feb 16, 2011
12
src/audio/dummy/*.c \
13
14
15
src/cpuinfo/*.c \
src/events/*.c \
src/file/*.c \
Aug 25, 2008
Aug 25, 2008
16
src/haptic/*.c \
Feb 16, 2011
Feb 16, 2011
17
18
19
20
21
22
23
src/haptic/dummy/*.c \
src/joystick/*.c \
src/joystick/dummy/*.c \
src/loadso/dummy/*.c \
src/power/*.c \
src/render/*.c \
src/render/software/*.c \
24
25
src/stdlib/*.c \
src/thread/*.c \
Feb 16, 2011
Feb 16, 2011
26
src/thread/generic/*.c \
Feb 16, 2011
Feb 16, 2011
28
src/timer/dummy/*.c \
29
30
31
32
33
34
35
src/video/*.c \
src/video/dummy/*.c \
OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
all: $(TARGET)
Feb 16, 2011
Feb 16, 2011
36
$(TARGET): $(OBJECTS)
37
38
39
40
41
$(AR) crv $@ $^
$(RANLIB) $@
clean:
rm -f $(TARGET) $(OBJECTS)