# point it to where the compiler can find the Lua header files (lua.h, etc.)
# LUADIR = ../lua

# define your own "large" integer type; not defining a proper type
# will default to 'long', which may cause problems with 'size_t'
INTTYPE = -DSTRUCT_INT="long long"

CFLAGS = -D_POSIX_SOURCE $(CWARNS) $(INTTYPE) -O2
CC ?= gcc

struct.so: struct.c
	$(CC) $(CFLAGS) -shared -fpic -o struct.so struct.c

clean:
	rm -rf *.so
