From e12fcb08a14de1f5738e0162bba50cdbf87dee47 Mon Sep 17 00:00:00 2001 From: pixel Date: Thu, 5 Jul 2007 18:05:43 +0000 Subject: First import... --- Makefile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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) -- cgit v1.2.3