diff options
Diffstat (limited to 'doc/examples/filtering/files/libhello/Makefile')
-rw-r--r-- | doc/examples/filtering/files/libhello/Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/examples/filtering/files/libhello/Makefile b/doc/examples/filtering/files/libhello/Makefile new file mode 100644 index 000000000..ba1f5b6c9 --- /dev/null +++ b/doc/examples/filtering/files/libhello/Makefile @@ -0,0 +1,19 @@ +# Sample makefile for hello library +# +.PHONY: all install + +all: libhello.so + +install: + install -d ${DESTDIR}${PREFIX}/lib + install -d ${DESTDIR}${PREFIX}/include + install -d ${DESTDIR}${PREFIX}/share/libhello + install -m 644 libhello.so ${DESTDIR}${PREFIX}/lib + install -m 644 libhello.h ${DESTDIR}${PREFIX}/include + install -m 644 default-person.txt ${DESTDIR}${PREFIX}/share/libhello + +%.o: %.c %.h + $(CC) -c $< -o $@ -Wall + +libhello.so: libhello.o + $(CC) -shared -o $@ $< |