This repository has been archived by the owner on Mar 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile.nsp
75 lines (69 loc) · 1.9 KB
/
Makefile.nsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
CC = nspire-gcc
AR = arm-none-eabi-ar
RANLIB = arm-none-eabi-ranlib
STRIP = arm-none-eabi-strip
INCLUDE = -I include
CFLAGS = -Wall -Wextra -Ofast -Wno-unused-parameter
TARGET = libSDL.a
CONFIG_H = include/SDL_config.h
SOURCES = \
src/SDL.c \
src/SDL_error.c \
src/SDL_fatal.c \
src/audio/SDL_audio.c \
src/audio/SDL_audiocvt.c \
src/cpuinfo/SDL_cpuinfo.c \
src/events/SDL_active.c \
src/events/SDL_events.c \
src/events/SDL_expose.c \
src/events/SDL_keyboard.c \
src/events/SDL_mouse.c \
src/events/SDL_quit.c \
src/events/SDL_resize.c \
src/file/SDL_rwops.c \
src/joystick/SDL_joystick.c \
src/stdlib/SDL_getenv.c \
src/stdlib/SDL_iconv.c \
src/stdlib/SDL_malloc.c \
src/stdlib/SDL_qsort.c \
src/stdlib/SDL_stdlib.c \
src/stdlib/SDL_string.c \
src/thread/SDL_thread.c \
src/thread/generic/SDL_syscond.c \
src/thread/generic/SDL_sysmutex.c \
src/thread/generic/SDL_syssem.c \
src/thread/generic/SDL_systhread.c \
src/timer/SDL_timer.c \
src/timer/tinspire/SDL_systimer.c \
src/video/SDL_blit.c \
src/video/SDL_blit_0.c \
src/video/SDL_blit_1.c \
src/video/SDL_blit_A.c \
src/video/SDL_blit_N.c \
src/video/SDL_bmp.c \
src/video/SDL_cursor.c \
src/video/SDL_gamma.c \
src/video/SDL_pixels.c \
src/video/SDL_RLEaccel.c \
src/video/SDL_stretch.c \
src/video/SDL_surface.c \
src/video/SDL_video.c \
src/video/SDL_yuv.c \
src/video/SDL_yuv_mmx.c \
src/video/SDL_yuv_sw.c \
src/video/tinspire/SDL_tinspireevents.c \
src/video/tinspire/SDL_tinspirefonts.c \
src/video/tinspire/SDL_tinspirenti.c \
src/video/tinspire/SDL_tinspireutils.c \
src/video/tinspire/SDL_tinspirevideo.c
OBJECTS = $(SOURCES:.c=.o)
all: $(TARGET)
$(TARGET): $(OBJECTS)
cp $(CONFIG_H).default $(CONFIG_H)
$(AR) cr $@ $^
$(RANLIB) $@
$(STRIP) --strip-unneeded $@
.c.o:
$(CC) $(INCLUDE) $(CFLAGS) -c $< -o $@
clean:
rm -f $(OBJECTS) $(TARGET)