1 # Makefile for uClibc (libuargp)
3 # Copyright (C) 2009, 2010 STMicroelectronics Ltd.
4 # Author(s): Salvatore Cro <salvatore.cro at st.com>
5 # - First implementation, embedded into libc
6 # Filippo Arcidiacono <filippo.arcidiacono at st.com>
7 # - Reworked for stand-alone libuargp implementation
9 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
12 CFLAGS-libuargp
:= -DNOT_IN_libc
-DIS_IN_libuargp
$(SSP_ALL_CFLAGS
)
14 libuargp_DIR
:= $(top_srcdir
)libuargp
15 libuargp_OUT
:= $(top_builddir
)libuargp
18 libuargp_SRC-
$(UCLIBC_HAS_ARGP
) := $(addsuffix .c
,$(addprefix argp-
, ba \
19 eexst fmtstream fs-xinl help parse pv pvh xinl
))
21 CFLAGS-argp-xinl.c
= -fgnu89-inline
23 libuargp_SRC
:= $(addprefix $(libuargp_DIR
)/,$(libuargp_SRC-y
))
24 libuargp_OBJ
:= $(patsubst $(libuargp_DIR
)/%.c
,$(libuargp_OUT
)/%.o
,$(libuargp_SRC
))
26 libuargp_SRCS
:= $(libuargp_SRC
)
27 libuargp_OBJS
:= $(libuargp_OBJ
)
30 libuargp-a-y
:= $(libuargp_OBJS
:.o
=.os
)
32 libuargp-a-y
:= $(libuargp_OBJS
)
34 libuargp-so-y
:= $(libuargp_OBJS
:.o
=.os
)
36 objclean-y
+= CLEAN_libuargp
38 $(libuargp_OUT
)/libuargp.oS
: $(libuargp_SRCS
)
43 $(do_rm
) $(addprefix $(libuargp_OUT
)/*.
, o os oS a
)