This commit was manufactured by cvs2svn to create branch 'decode'.
[gnokii.git] / getopt / Makefile
diff --git a/getopt/Makefile b/getopt/Makefile
new file mode 100644 (file)
index 0000000..037269d
--- /dev/null
@@ -0,0 +1,28 @@
+TOPDIR=..
+include $(TOPDIR)/Makefile.global
+
+CFLAGS += $(PTHREAD_CFLAGS)
+LDFLAGS =
+
+SRCS = getopt.c getopt1.c
+OBJS = getopt.o getopt1.o
+
+all: libgetopt.a
+
+libgetopt.a: $(OBJS)
+       $(AR) cq $@ $(OBJS)
+
+depend dep:
+       $(CPP) -M $(CFLAGS) $(SRCS) > depend
+
+distclean clean::
+       $(RM) $(OBJS) *~ depend *.a
+
+#####
+# DO NOT DELETE THIS LINE -- make depend depends on it.
+ifeq (depend,$(wildcard depend))
+include depend
+endif
+
+.PHONY: all clean dep depend