mirror of https://github.com/sipwise/sems.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
601 B
31 lines
601 B
|
|
COREPATH ?=../../../core
|
|
|
|
AR ?= ar
|
|
RANLIB ?= ranlib
|
|
|
|
include ../Makefile.defs
|
|
|
|
PY_VER = $(PYTHON_VERSION)
|
|
|
|
SIP_FILES = $(wildcard *.sip)
|
|
lib_name = py_sems_lib.a
|
|
|
|
ifneq 'Makefile.gen' '$(MAKECMDGOALS)'
|
|
include Makefile.gen
|
|
endif
|
|
|
|
.PHONY: cleaner
|
|
cleaner: clean
|
|
rm -f *.cpp *.h *.sbf Makefile.gen $(lib_name) *~
|
|
|
|
Makefile.gen: Makefile configure.py $(SIP_FILES)
|
|
python$(PY_VER) configure.py
|
|
|
|
ifneq 'Makefile.gen' '$(MAKECMDGOALS)'
|
|
$(lib_name): $(OFILES) Makefile.gen
|
|
if [ -f $(lib_name) ]; then rm $(RMFLAGS) $(lib_name) ; fi
|
|
$(AR) $(ARFLAGS) $(lib_name) $(OFILES)
|
|
$(RANLIB) $(lib_name)
|
|
endif
|