fixed typo
[util-vserver.git] / util-vserver / ensc_vector / Makefile-files
index 98e5f6d..ec62f20 100644 (file)
@@ -43,7 +43,25 @@ ENSC_VECTOR_HDRS =           ensc_vector/vector.h \
                                ensc_vector/list.h \
                                ensc_vector/list.hc
 
-ENSC_VECTOR_LIBS =             libensc_vector.a
-libensc_vector_a_SOURCES =     $(ENSC_VECTOR_SRCS)
+LIBENSCVECTOR_GLIBC =          libensc_vector-glibc.a
+ENSC_VECTOR_LIBS =             $(LIBENSCVECTOR_GLIBC)
+
+libensc_vector_glibc_a_SOURCES =       $(ENSC_VECTOR_SRCS)
+libensc_vector_glibc_a_CPPFLAGS =      $(AM_CPPFLAGS)
+
+libensc_vector_diet_a_SOURCES =                $(ENSC_VECTOR_SRCS)
+libensc_vector_diet_a_CPPFLAGS =       $(AM_CPPFLAGS)
+
+if USE_DIETLIBC
+LIBENSCVECTOR_DIET =           libensc_vector-diet.a
+LIBENSCVECTOR =                        $(LIBENSCVECTOR_DIET)
+ENSC_VECTOR_LIBS +=            $(LIBENSCVECTOR_DIET)
+else
+LIBENSCVECTOR_DIET =           lib-dietlibc-not-enabled-error.a
+LIBENSCVECTOR =                        $(LIBENSCVECTOR_GLIBC)
+endif
+
+CLEANFILES +=                  libensc_vector-diet.a \
+                               libensc_vector-glibc.a
 
 include $(srcdir)/ensc_vector/testsuite/Makefile-files