A binding to libqalculate for lua
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.

16 lines
304 B

2 years ago
2 years ago
  1. LUA_VERSION=5.1
  2. INCLUDES=-I/usr/include/lua${LUA_VERSION}
  3. CXX=g++
  4. CFLAGS=-fPIC
  5. LIBS=-lqalculate
  6. OUTPUT=libqalculate.so
  7. all: qalculator.o
  8. ${CXX} ${LIBS} -shared $< -o libqalculator.so
  9. qalculator.o: qalculator.cpp
  10. ${CXX} ${INCLUDES} -c $< -o $@ ${CFLAGS}
  11. clean:
  12. ${RM} libqalculator.so qalculator.o