all : strbit.so CFLAGS = -Wall -std=c89 -ansi -pedantic LDFLAGS = .PHONY : all strbit.o : strbit.c gcc $(CFLAGS) -fPIC -c strbit.c -o strbit.o -I/usr/include/lua5.1 strbit.so : strbit.o gcc $(LDFLAGS) -shared strbit.o -o strbit.so