blob: 01085e3cb237878cf81d798119e3eac6fb6a5758 [file] [log] [blame]
TARGET := libdtmf.so
SOURCES := dtmf.c
OBJECTS := $(SOURCES:.c=.o)
GET_LOCAL_DIR = $(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST))))
.PHONY: all clean install
all: $(TARGET)
$(TARGET): $(OBJECTS)
${CC} ${CFLAGS} -shared -fPIC -o ${TARGET} ${SOURCES}
clean:
$(RM) $(OBJECTS) $(TARGET)
install: $(TARGET)
install -d ${DESTDIR}${LIBDIR}
install -d ${DESTDIR}${INCDIR}
install -m 755 ${TARGET} $(DESTDIR)${LIBDIR}/${TARGET}
install -m 444 *.h $(DESTDIR)${INCDIR}/