added modules/westley
[melted] / src / modules / westley / Makefile
diff --git a/src/modules/westley/Makefile b/src/modules/westley/Makefile
new file mode 100644 (file)
index 0000000..576a6ea
--- /dev/null
@@ -0,0 +1,30 @@
+
+TARGET = ../libmltwestley.so
+
+OBJS = factory.o \
+          consumer_westley.o \
+          producer_westley.o
+
+CFLAGS = -I../../ -Wall -g -D_FILE_OFFSET_BITS=64 -pthread `xml2-config --cflags`
+
+LDFLAGS = `xml2-config --libs`
+
+SRCS := $(OBJS:.o=.c)
+
+all:   $(TARGET)
+
+$(TARGET): $(OBJS)
+               $(CC) -shared -o $@ $(OBJS) $(LDFLAGS)
+
+depend:        $(SRCS)
+               $(CC) -MM $(CFLAGS) $^ 1>.depend
+
+dist-clean:    clean
+               rm -f .depend
+
+clean: 
+               rm -f $(OBJS) $(TARGET) 
+
+ifneq ($(wildcard .depend),)
+include .depend
+endif