# This can be overridden on cmdline to generate pages elsewhere.
WEBDIR=~/www/html/ccan/
-CFLAGS=-g -Wall -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Werror -Iccan -I.
-
ALL=$(patsubst ccan/%/test, %, $(wildcard ccan/*/test))
ALL_DIRS=$(patsubst %, ccan/%, $(ALL))
ALL_DEPENDS=$(patsubst %, ccan/%/.depends, $(ALL))
# You could just do:
# SRCFILES += $(shell find ccan/ -name '[a-z]*.c')
-CFLAGS=-g -O2 -Wall -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Werror -Iccan -I.
+CFLAGS=-g -O2 -Wall -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Werror -I.
CFILES=$(wildcard ccan/*/[a-z]*.c)
OBJFILES=$(CFILES:.c=.o)
#include <assert.h>
#include <stdlib.h>
#include "alloc.h"
-#include "build_assert/build_assert.h"
-#include "alignof/alignof.h"
+#include <ccan/build_assert/build_assert.h>
+#include <ccan/alignof/alignof.h>
#include "config.h"
/* FIXME: We assume getpagesize() doesnt change. Remapping file with
#include <errno.h>
#include <err.h>
#include "antithread.h"
-#include "noerr/noerr.h"
-#include "talloc/talloc.h"
-#include "alloc/alloc.h"
+#include <ccan/noerr/noerr.h>
+#include <ccan/talloc/talloc.h>
+#include <ccan/alloc/alloc.h>
/* FIXME: Valgrind support should be possible for some cases. Tricky
* case is where another process allocates for you, but at worst we
#include <stddef.h>
#include "config.h"
-#include "check_type/check_type.h"
+#include <ccan/check_type/check_type.h>
/**
* container_of - get pointer to enclosing structure
#include "grab_file.h"
-#include "talloc/talloc.h"
-#include "noerr/noerr.h"
+#include <ccan/talloc/talloc.h>
+#include <ccan/noerr/noerr.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/param.h> /* attempt to define endianness */
#endif
-#include "hash/hash.h"
+#include "hash.h"
#ifdef linux
# include <endian.h> /* attempt to define endianness */
#endif
#include <stdio.h>
#include <stdlib.h>
-#include "list/list.h"
+#include "list.h"
struct list_head *list_check(struct list_head *h, const char *abortstr)
{
#ifndef CCAN_LIST_H
#define CCAN_LIST_H
#include <stdbool.h>
-#include "container_of/container_of.h"
+#include <ccan/container_of/container_of.h>
/**
* struct list_node - an entry in a doubly-linked list
#include <limits.h>
#include <stdlib.h>
#include "str_talloc.h"
-#include "talloc/talloc.h"
+#include <ccan/talloc/talloc.h>
char **strsplit(const void *ctx, const char *string, const char *delims,
unsigned int *nump)
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
+#include <ccan/typesafe_cb/typesafe_cb.h>
#include "config.h"
-#include "typesafe_cb/typesafe_cb.h"
/*
this uses a little trick to allow __LINE__ to be stringified
#include <err.h>
#include <stdlib.h>
#include <stdio.h>
-#include "str/str.h"
-#include "talloc/talloc.h"
+#include <ccan/str/str.h>
+#include <ccan/talloc/talloc.h>
int main(int argc, char *argv[])
{
-#include "talloc/talloc.h"
-#include "str/str.h"
-#include "grab_file/grab_file.h"
-#include "str_talloc/str_talloc.h"
+#include <ccan/talloc/talloc.h>
+#include <ccan/str/str.h>
+#include <ccan/grab_file/grab_file.h>
+#include <ccan/str_talloc/str_talloc.h>
#include "tools.h"
#include <err.h>
#include <stdbool.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdbool.h>
-#include "talloc/talloc.h"
-#include "str/str.h"
-#include "str_talloc/str_talloc.h"
-#include "grab_file/grab_file.h"
+#include <ccan/talloc/talloc.h>
+#include <ccan/str/str.h>
+#include <ccan/str_talloc/str_talloc.h>
+#include <ccan/grab_file/grab_file.h>
static char **grab_doc(const char *fname)
{