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}/ |