]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
make doc (and friends) target added
authorMiek Gieben <miekg@NLnetLabs.nl>
Thu, 9 Dec 2004 14:51:22 +0000 (14:51 +0000)
committerMiek Gieben <miekg@NLnetLabs.nl>
Thu, 9 Dec 2004 14:51:22 +0000 (14:51 +0000)
Makefile.in
rdata.c

index 9f3589f8a4266ef1a59cd9a06d67d2cd04fdb4eb..d1d99b6dc7f62f0b9d6a2ead862d6ba8b8eaf8b7 100644 (file)
@@ -29,20 +29,23 @@ LINK                = $(CC) $(CFLAGS) $(LDFLAGS)
 %.o:   %.c
        $(COMPILE) -c $<
 
-.PHONY:        clean realclean
+.PHONY:        clean realclean docclean doc
 
 all:   run-test0
 
 run-test0:     run-test0.o $(LIBDNS_OBJECTS)
                $(LINK) -o $@ $+
 
+doc:   
+       doxygen libdns.doxygen
+
 clean: 
        rm -f *.o *.d
-       rm -f main
+       rm -f run-test0
        rm -rf autom4te.cache/
        rm -f aclocal.m4
 
-realclean: clean
+realclean: clean docclean
        rm -f config.status
        rm -f config.log
        rm -f Makefile
@@ -50,6 +53,11 @@ realclean: clean
        rm -f config.h.in
        rm -f configure
 
+docclean:
+       rm -rf doc
+
+
+
 # Automatic dependencies.
 %.d: %.c
        $(SHELL) -ec '$(CC) -MM $(CPPFLAGS) $< \
diff --git a/rdata.c b/rdata.c
index 9c75af2655312b5bb9f90846b8625a950f38b4c9..48227161df875ebcb278033dea9c7c7aa32b5e6a 100644 (file)
--- a/rdata.c
+++ b/rdata.c
@@ -59,7 +59,8 @@ rd_field_set_data(t_rdata_field *rd, uint8_t *d, uint16_t s)
        memcpy(rd->_data, d, s);
 }
 
-/* allocate a new t_rdata_field structure 
+/**
+ * Allocate a new t_rdata_field structure 
  * and return it
  */
 t_rdata_field *
@@ -78,11 +79,12 @@ rd_field_new(uint16_t s, t_rd_type t, uint8_t *d)
        return(rd);
 }
 
-/* allocate a new t_rdata_field from
+/**
+ * aLlocate a new t_rdata_field from
  * a NULL terminated string
  * and return it
  *
- * uint8_t == char !!!!
+ * uint8_t == char?  XXX 
  */
 t_rdata_field *
 rd_field_new_frm_string(t_rd_type t, char *s)