Skip to content

Correct or idiomatic way to use local c code that I don't want to add janet code to #95

@krsanky

Description

@krsanky

I have a C module I wrote config.h and config.c.
I want to call this from my janet C code.
How do I tell jpm about my config.o module ?
Or where should I put it?

The point is I would prefer not to add any janet code
to the module so I can use it as is from my other c projects
as well.

If I was doing plain C code I would add paths to my Makefile like:
CFLAGS+= -I$(HOME)/code/config
LDFLAGS+= -L$(HOME)/code/config

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions