1 ## $Id$ --*- makefile -*--
3 ## Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
5 ## This program is free software; you can redistribute it and/or modify
6 ## it under the terms of the GNU General Public License as published by
7 ## the Free Software Foundation; version 2 of the License.
9 ## This program is distributed in the hope that it will be useful,
10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 ## GNU General Public License for more details.
14 ## You should have received a copy of the GNU General Public License
15 ## along with this program; if not, write to the Free Software
16 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 ENSC_VECTOR_SRCS = ensc_vector/vector-clear.c \
19 ensc_vector/vector-free.c \
20 ensc_vector/vector-init.c \
21 ensc_vector/vector-insert.c \
22 ensc_vector/vector-internal.h \
23 ensc_vector/vector-popback.c \
24 ensc_vector/vector-pushback.c \
25 ensc_vector/vector-resize.c \
26 ensc_vector/vector-resizeinternal.hc \
27 ensc_vector/vector-search.c \
28 ensc_vector/vector-searchselforg.c \
29 ensc_vector/vector-sort.c \
30 ensc_vector/vector-unique.c \
31 ensc_vector/vector-zeroend.c \
32 ensc_vector/list-at.c \
33 ensc_vector/list-add.c \
34 ensc_vector/list-free.c \
35 ensc_vector/list-init.c \
36 ensc_vector/list-insertinternal.c \
37 ensc_vector/list-internal.h \
38 ensc_vector/list-search.c \
39 ensc_vector/list-searchselforg.c
41 ENSC_VECTOR_HDRS = ensc_vector/vector.h \
42 ensc_vector/vector.hc \
47 libensc_vector_glibc_a_SOURCES = $(ENSC_VECTOR_SRCS)
48 libensc_vector_glibc_a_CPPFLAGS = $(AM_CPPFLAGS)
50 libensc_vector_diet_a_SOURCES = $(ENSC_VECTOR_SRCS)
51 libensc_vector_diet_a_CPPFLAGS = $(AM_CPPFLAGS)
56 LIBENSCVECTOR_GLIBC = libensc_vector-glibc.a
57 ENSC_VECTOR_LIBS += $(LIBENSCVECTOR_GLIBC)
59 LIBENSCVECTOR_GLIBC = lib-glibc-not-enabled-error.a
63 LIBENSCVECTOR_DIET = libensc_vector-diet.a
64 ENSC_VECTOR_LIBS += $(LIBENSCVECTOR_DIET)
66 LIBENSCVECTOR_DIET = lib-dietlibc-not-enabled-error.a
71 LIBENSCVECTOR = $(LIBENSCVECTOR_DIET)
72 else !ENSC_USE_DIETLIBC
74 LIBENSCVECTOR = $(LIBENSCVECTOR_GLIBC)
76 LIBENSCVECTOR = lib-nolib-enabled-error.a
78 endif !ENSC_USE_DIETLIBC
80 CLEANFILES += libensc_vector-diet.a \
81 libensc_vector-glibc.a
83 include $(srcdir)/ensc_vector/testsuite/Makefile-files