ALL_DEPENDS=$(patsubst %, ccan/%/.depends, $(MODS))
-# By default, we skip modules with external deps.
-MODS_EXCLUDE:=jmap jset nfs ogg_to_pcm tal/talloc wwviaudio
+# By default, we skip modules with external deps (or plaform specific)
+MODS_EXCLUDE:=altstack generator jmap jset nfs ogg_to_pcm tal/talloc wwviaudio
include Makefile-ccan
$(CC) $(CCAN_CFLAGS) -o $@ -x c $<
clean: tools-clean
- $(RM) `find * -name '*.o'` `find * -name '.depends'` `find * -name '*.a'` `find * -name info` `find * -name '*.d'`
- $(RM) inter-depends lib-depends test-depends ccan/*-Makefile
+ rm -f `find * -name '*.o'` `find * -name '.depends'` `find * -name '*.a'` `find * -name info` `find * -name '*.d'` `find ccan -name '*-Makefile'`
+ rm -f config.h
+ rm -f inter-depends lib-depends test-depends
# Creates a dependency from the tests to the object files which it needs.
inter-depends: $(ALL_DEPENDS) Makefile