SRC=testlib.c
OBJ=$(SRC:%.c=%.o)
LIB=$(SRC:%.c=%.so)

oneGo:
	$(CC) -shared -Wl,-soname,$(LIB) -o $(LIB) -fPIC $(SRC)

twoSteps:
	$(CC) -c -fPIC $(SRC) -o $(OBJ)
	$(CC) -shared -Wl,-soname,$(LIB) $(OBJ) -o $(LIB)

clean:
	$(RM) *.so *.o

test:
	python wrapper.py
