summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorpixel <pixel>2007-07-05 18:05:43 +0000
committerpixel <pixel>2007-07-05 18:05:43 +0000
commite12fcb08a14de1f5738e0162bba50cdbf87dee47 (patch)
tree48ed11b4e908a1760d0bd0ddce96c05d2a896e13 /Makefile
First import...
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..69a8e33
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,32 @@
+CC = gcc
+AR = ar rcs
+
+CPPFLAGS = -g -Wall -Werror
+
+SOURCE_LIST = \
+errors.c \
+extract.c \
+mpq-bios.c \
+MPQCryptography.c \
+mpq-errors.c \
+
+TARGET = mpqlib.a
+
+
+OBJ_LIST = $(addsuffix .o, $(notdir $(basename $(SOURCE_LIST))))
+DEP_LIST = $(addsuffix .dep, $(notdir $(basename $(SOURCE_LIST))))
+
+all: dep $(TARGET)
+
+$(TARGET): $(OBJ_LIST)
+ $(AR) $@ $(OBJ_LIST)
+
+clean:
+ rm -f *.o *.dep $(TARGET)
+
+dep: $(ALL_DEPS)
+
+%.dep : %.c
+ $(CC) $(CPPFLAGS) -M -MF $@ $<
+
+-include $(ALL_DEPS)