PYTHON_VERSION_SUFFIX=3.8

CFLAGS = \
	-g \
	-Wall \
	-fPIC \
	-Wstrict-prototypes \
	$(INCFLAGS)

SWIG_TEMP_FILES = \
	_three_funcs.so \
	three_funcs.py \
	three_funcs_wrap.c

INCFLAGS = \
	-I/usr/include/python$(PYTHON_VERSION_SUFFIX)

LIBFLAGS = \
	-lpython$(PYTHON_VERSION_SUFFIX)

default: three_funcs.o

three_funcs.o: three_funcs.c three_funcs.h
	$(CC) -c $(CFLAGS) $< -o $@

three_funcs_wrap.o: three_funcs_wrap.c
	$(CC) -c $(CFLAGS) $< -o $@

clean:
	rm -rf *~ __pycache__ a.out *.o $(SWIG_TEMP_FILES)

immaculate: clean
	rm -rf $(BINS) build 
