blob: 01085e3cb237878cf81d798119e3eac6fb6a5758 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001TARGET := libdtmf.so
2SOURCES := dtmf.c
3OBJECTS := $(SOURCES:.c=.o)
4
5GET_LOCAL_DIR = $(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST))))
6
7.PHONY: all clean install
8
9all: $(TARGET)
10
11$(TARGET): $(OBJECTS)
12 ${CC} ${CFLAGS} -shared -fPIC -o ${TARGET} ${SOURCES}
13
14clean:
15 $(RM) $(OBJECTS) $(TARGET)
16
17install: $(TARGET)
18 install -d ${DESTDIR}${LIBDIR}
19 install -d ${DESTDIR}${INCDIR}
20 install -m 755 ${TARGET} $(DESTDIR)${LIBDIR}/${TARGET}
21 install -m 444 *.h $(DESTDIR)${INCDIR}/