summaryrefslogtreecommitdiff
path: root/libresolv/Makefile.in
blob: 3425a7c737f90f8cdfca810849f9ff3d682b8734 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Makefile for uClibc
#
# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
#
# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
#

subdirs += libresolv

CFLAGS-libresolv := -DNOT_IN_libc -DIS_IN_libresolv $(SSP_ALL_CFLAGS)

libresolv_DIR := $(top_srcdir)libresolv
libresolv_OUT := $(top_builddir)libresolv

libresolv_SRC := $(libresolv_DIR)/resolv.c
libresolv_OBJ := $(patsubst $(libresolv_DIR)/%.c,$(libresolv_OUT)/%.o,$(libresolv_SRC))

ifeq ($(DOPIC),y)
libresolv-a-y := $(libresolv_OBJ:.o=.os)
else
libresolv-a-y := $(libresolv_OBJ)
endif
libresolv-so-y := $(libresolv_OBJ:.o=.os)

objclean-y += CLEAN_libresolv

CLEAN_libresolv:
	$(do_rm) $(addprefix $(libresolv_OUT)/*., o os a)