# Programas
targets=ip
tests=test_send test_recv test_ipaddr test_ipin test_ipout test_devtcp \
- test_poll test_resolvprotos test_resolvprotoc test_nameserver_file
+ test_poll test_resolvprotos test_resolvprotoc test_nameserver_file \
+ test_nameserver_resolvnext
# Fuentes
fuentes ?= $(wildcard *.cpp) $(wildcard *.c)
test_poll: test_poll.o libtcp.o
+#FIXME no va libtcp.o, debe ir sobre mi implementación de ip.
test_resolvprotos: test_resolvprotos.o libtcp.o ipaddr.o resolvproto.o
+#FIXME no va libtcp.o, debe ir sobre mi implementación de ip.
test_resolvprotoc: test_resolvprotoc.o libtcp.o ipaddr.o resolvproto.o
-test_nameserver_file: test_nameserver_file.o ipaddr.o nameserver.o
+#FIXME no va libtcp.o, debe ir sobre mi implementación de ip.
+test_nameserver_file: test_nameserver_file.o ipaddr.o nameserver.o \
+ resolvproto.o libtcp.o
-ip: ip.o ipout.o ipin.o ipaddr.o ipheader.o devque.o devtcp.o routetable.o libtcp.o
+#FIXME no va libtcp.o, debe ir sobre mi implementación de ip.
+test_nameserver_resolvnext: test_nameserver_resolvnext.o ipaddr.o \
+ nameserver.o resolvproto.o libtcp.o
+
+ip: ip.o ipout.o ipin.o ipaddr.o ipheader.o devque.o devtcp.o routetable.o \
+ libtcp.o
depend:
@makedepend $(fuentes) > /dev/null 2>&1
nameserver.o: nameserver.h ipaddr.h /usr/include/stdint.h
nameserver.o: /usr/include/features.h /usr/include/sys/cdefs.h
nameserver.o: /usr/include/gnu/stubs.h /usr/include/bits/wchar.h
-nameserver.o: /usr/include/bits/wordsize.h
+nameserver.o: /usr/include/bits/wordsize.h resolvproto.h
resolvproto.o: resolvproto.h ipaddr.h /usr/include/stdint.h
resolvproto.o: /usr/include/features.h /usr/include/sys/cdefs.h
resolvproto.o: /usr/include/gnu/stubs.h /usr/include/bits/wchar.h
test_nameserver_file.o: nameserver.h ipaddr.h /usr/include/stdint.h
test_nameserver_file.o: /usr/include/features.h /usr/include/sys/cdefs.h
test_nameserver_file.o: /usr/include/gnu/stubs.h /usr/include/bits/wchar.h
-test_nameserver_file.o: /usr/include/bits/wordsize.h
+test_nameserver_file.o: /usr/include/bits/wordsize.h resolvproto.h
+test_nameserver_resolvnext.o: nameserver.h ipaddr.h /usr/include/stdint.h
+test_nameserver_resolvnext.o: /usr/include/features.h
+test_nameserver_resolvnext.o: /usr/include/sys/cdefs.h
+test_nameserver_resolvnext.o: /usr/include/gnu/stubs.h
+test_nameserver_resolvnext.o: /usr/include/bits/wchar.h
+test_nameserver_resolvnext.o: /usr/include/bits/wordsize.h resolvproto.h
test_recv.o: devque.h dev.h /usr/include/unistd.h /usr/include/features.h
test_recv.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h
test_recv.o: /usr/include/bits/posix_opt.h /usr/include/bits/types.h