Hi! > >> Makefile example: > >> > >> top_srcdir ?= ../../../.. > >> > > Why aren't you including env_pre.mk here? > > > > It contains mostly compatibility hack for older Make. > > > > Does it break something? > > > Yes, I would include it only inside ifeq($(KERNELRELEASE),) otherwise > make stops in the kernel tree with error "Fix it to use EXTRA_CFLAGS", > it finds that CFLAGS is not empty... may be we can add > ifneq($(KERNELRELEASE),) to the "env_pre.mk and "testcases.mk"?
And what about this then: Makefile: top_srcdir ?= ../../../.. include $(top_srcdir)/include/mk/env_pre.mk REQ_VERSION_MAJOR := 2 REQ_VERSION_PATCH := 6 MODULE_NAMES := ltp_foo include $(top_srcdir)/include/mk/module.mk include $(top_srcdir)/include/mk/generic_leaf_target.mk And make module.mk either to set MAKE_TARGETS to the ltp_foo.ko or to be empty in case we don't want to build anything (which should be NOOP). -- Cyril Hrubis [email protected] ------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
