structs-guile/Makefile

export CC = clang

all: ./main

./main: main.go main.c main.h structs.h
	go build -o main.so -buildmode=c-shared main.go
	clang -Wall -o main main.c ./main.so $(shell pkg-config --cflags --libs guile-2.2)

run: ./main
	./main -s main.scm