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

Latest commit

 

History

History
45 lines (38 loc) · 817 Bytes

Makefile.minimal

File metadata and controls

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