X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=Makefile;h=6559c702a14c911ee024586dfa0f794abfd7b5b5;hp=ff0bad4e91acfd32d7a0e60366850b41b0c23ba8;hb=61f58ff94e35c9b8ac5488554e2554bc5c9888b3;hpb=68c74ffd4356e26ba25b4fbbf9a8f832dcb8a0b8 diff --git a/Makefile b/Makefile index ff0bad4e..6559c702 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,7 @@ WARN_CFLAGS := -Wall -Wstrict-prototypes -Wold-style-definition -Wundef \ -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wwrite-strings DEP_CFLAGS = -MMD -MP -MF$(@:%=%.d) -MT$@ CCAN_CFLAGS := -g3 -ggdb $(WARN_CFLAGS) -DCCAN_STR_DEBUG=1 -I. $(CFLAGS) +CFLAGS_FORCE_C_SOURCE := -x c # Anything with an _info file is a module ... INFO_SRCS := $(wildcard ccan/*/_info ccan/*/*/_info) @@ -32,7 +33,7 @@ DEPS := $(OBJS:%=%.d) # _info files are compiled into executables and don't need dependencies %info : %_info config.h - $(PRE)$(CC) $(CCAN_CFLAGS) -I. -o $@ -x c $< + $(PRE)$(CC) $(CCAN_CFLAGS) -I. -o $@ $(CFLAGS_FORCE_C_SOURCE) $< # config.h is built by configurator which has no ccan dependencies CONFIGURATOR := tools/configurator/configurator