17 lines
300 B
Makefile
17 lines
300 B
Makefile
|
LUA_VERSION=5.2
|
||
|
INCLUDES=-I/usr/lib/lua${LUA_VERSION}
|
||
|
CXX=g++
|
||
|
CFLAGS=-fPIC
|
||
|
LIBS=-lqalculate
|
||
|
OUTPUT=libqalculate.so
|
||
|
|
||
|
all: qalculator.o
|
||
|
${CXX} ${LIBS} -shared $< -o libqalculator.so
|
||
|
|
||
|
qalculator.o: qalculator.cpp
|
||
|
${CXX} ${INCLUDES} -c $< -o $@ ${CFLAGS}
|
||
|
|
||
|
clean:
|
||
|
${RM} libqalculator.so qalculator.o
|
||
|
|