Rename miracle, valerie, humperdink, and albino.
[melted] / src / mvcp-client / Makefile
diff --git a/src/mvcp-client/Makefile b/src/mvcp-client/Makefile
new file mode 100644 (file)
index 0000000..cd31018
--- /dev/null
@@ -0,0 +1,39 @@
+include ../../config.mak
+
+TARGET = mvcp-client
+
+OBJS = client.o \
+          io.o \
+          remote.o
+
+CFLAGS += -I.. $(RDYNAMIC)
+
+LDFLAGS += -L../mvcp -lmvcp
+LDFLAGS += -lpthread
+
+SRCS := $(OBJS:.o=.c)
+
+all: $(TARGET)
+
+$(TARGET): $(OBJS)
+               $(CC) -o $@ $(OBJS) $(LDFLAGS)
+
+depend:        $(SRCS)
+               $(CC) -MM $(CFLAGS) $^ 1>.depend
+
+distclean:     clean
+               rm -f .depend
+
+clean: 
+               rm -f $(OBJS) $(TARGET)
+
+install:       all
+       install -d "$(DESTDIR)$(bindir)"
+       install -c -s -m 755 $(TARGET) "$(DESTDIR)$(bindir)"
+
+uninstall:
+       rm -f "$(DESTDIR)$(bindir)/$(TARGET)"
+
+ifneq ($(wildcard .depend),)
+include .depend
+endif