janet-lang / jpm

Janet Project Manager
MIT License
68 stars 22 forks source link

Integration with makefile? #3

Closed glyh closed 2 years ago

glyh commented 3 years ago

There's already some existing libraries with a exisiting build tool(makefile). I don't want to create a whole bunch of new things in jpm. Is there a way that I can just extend the existing makefile so that I don't need to write everything again?

glyh commented 3 years ago

Or, is it just enough to add janet.h and janet.c, generating a .so file enough?

bakpakin commented 3 years ago

I'm not really sure exactly what you mean, do you want to build a library for Janet, or embed Janet into an application? You can add janet.h and janet.c to a project and ignore jpm entirely, but janet libraries that are written for jpm will have to be translated if you want to embed in a Makefile.

bakpakin commented 3 years ago

Of course, you can also call jpm from make, and you can call make from jpm.