ndk-busybox/libres/Makefile
Chris Renshaw adb9e131ce fix nslookup, add libres, a dietlibc resolver
Using bionic's resolver functions does not allow changing the dns
server. Use dietlibc's resolver code instead (see package libres-devel)

Patch by Tias Guns <tias@ulyssis.org>, based on 'dietlibc-resolver' and
'libres-0.32-1' by Dan Drown
http://dan.drown.org/android/src/busybox/
http://dan.drown.org/android/src/libres/

Rebased for busybox 1.29.1 by Chris Renshaw <osm0sis@outlook.com>
2024-04-25 15:48:06 -07:00

33 lines
545 B
Makefile

CC=agcc
OBJECTS=getaddrinfo.o
OBJECTS+=gethostbyname2_r.o
OBJECTS+=dnscruft.o
OBJECTS+=dnscruft2.o
OBJECTS+=dnscruft3.o
OBJECTS+=h_errno.o
OBJECTS+=res_query.o
OBJECTS+=res_mkquery.o
OBJECTS+=gai_strerror.o
OBJECTS+=freeaddrinfo.o
OBJECTS+=res_init.o
OBJECTS+=dn_expand.o
CFLAGS+=-Wall
all: libres.a test
clean:
rm -f $(OBJECTS) libres.a test.o test
test: libres.a test.o
$(CC) $(CFLAGS) -o test test.o libres.a
libres.a: $(OBJECTS)
ar r libres.a $(OBJECTS)
ranlib libres.a
.PHONY: all clean
%.o: %.c dietdns.h
$(CC) $(CFLAGS) -c $<