summaryrefslogtreecommitdiff
path: root/Makefile.minimal
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2006-03-23 21:28:33 +0000
committerSam Lantinga <slouken@libsdl.org>2006-03-23 21:28:33 +0000
commitc68ee88d7a96a1f56cf04c84e56cdd80c3fc99c4 (patch)
treeb68145fcfa05d8814bedd4add32c66beefaa672b /Makefile.minimal
parent3c6f2729571a380cea54c240a82766e222cbe92d (diff)
Fixed bug #171
SDL_config.h is no longer in CVS. Instead, configure will generate it for systems that use configure, and we always copy SDL_config.h.default to SDL_config.h before generating a snapshot or release archive. Also fixed a couple of uninstall issues. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401610
Diffstat (limited to 'Makefile.minimal')
-rw-r--r--Makefile.minimal6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.minimal b/Makefile.minimal
index e54452db..827621c3 100644
--- a/Makefile.minimal
+++ b/Makefile.minimal
@@ -5,6 +5,7 @@ CFLAGS = -g -O2 $(INCLUDE)
AR = ar
RANLIB = ranlib
+CONFIG_H = include/SDL_config.h
TARGET = libSDL.a
SOURCES = \
src/*.c \
@@ -30,9 +31,12 @@ OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
all: $(TARGET)
-$(TARGET): $(OBJECTS)
+$(TARGET): $(CONFIG_H) $(OBJECTS)
$(AR) crv $@ $^
$(RANLIB) $@
+$(CONFIG_H):
+ cp $(CONFIG_H).default $(CONFIG_H)
+
clean:
rm -f $(TARGET) $(OBJECTS)