summaryrefslogtreecommitdiff
path: root/Makefile.minimal
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2006-03-08 08:30:17 +0000
committerSam Lantinga <slouken@libsdl.org>2006-03-08 08:30:17 +0000
commit339f03befc7f7df8c07fd754a3f7385654bfc32b (patch)
treee1885584c16c10f7ce2ea91592391fedaaabfbb6 /Makefile.minimal
parent66b29f704f50846a4bc0870fcf4b2ed040742656 (diff)
Added documentation on how to build a completely useless SDL library. :)
Diffstat (limited to 'Makefile.minimal')
-rw-r--r--Makefile.minimal38
1 files changed, 38 insertions, 0 deletions
diff --git a/Makefile.minimal b/Makefile.minimal
new file mode 100644
index 0000000000..52b444a536
--- /dev/null
+++ b/Makefile.minimal
@@ -0,0 +1,38 @@
+# 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 \
+ src/cdrom/*.c \
+ src/cpuinfo/*.c \
+ src/events/*.c \
+ src/file/*.c \
+ src/joystick/*.c \
+ src/stdlib/*.c \
+ src/thread/*.c \
+ src/timer/*.c \
+ src/video/*.c \
+ src/audio/disk/*.c \
+ src/video/dummy/*.c \
+ src/joystick/dummy/*.c \
+ 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)
+
+$(TARGET): $(OBJECTS)
+ $(AR) crv $@ $^
+ $(RANLIB) $@
+
+clean:
+ rm -f $(TARGET) $(OBJECTS)