On 12/01/18 16:05, John Morris wrote:



Is the old `Makefile.inc` still installed with packages?

Yes it is. The machinekit-dev package was scrubbed and now the main machinekit-<flavour> package contains it at /usr/share/linuxcnc

That generated file is supposed to include enough stuff that it can be included in an out-of-tree C-language component's Makefile, and (I think) you can add your component's rules like they are in the main source tree's `src/Makefile`. Cribbing from there, this is unlikely to work as is, but I'd hope the basic idea would work:

# Include the build parameters
include /usr/share/linuxcnc/Makefile.inc

# Set up the module rules
obj-$(CONFIG_MYKINS) += tp.o tpmain.o
mykins-objs := tp.o tpmain.o $(MATHSTUB)
mykins$(MODULE_EXT): $(mykins-objs)

# Add the module build to a higher-level target
all: obj-$(CONFIG_MYKINS)

    John


--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to