diff options
author | Nikola Pajkovsky <npajkovs@redhat.com> | 2010-07-22 19:18:40 +0200 |
---|---|---|
committer | Nikola Pajkovsky <npajkovs@redhat.com> | 2010-07-29 13:48:36 +0200 |
commit | 885a306642f5b3e5b17715893c515a6b4ccb6092 (patch) | |
tree | 96ba8aaff437c1ab99c8dd493a29b9095058ad15 /doc/abrt-plugin/Makefile | |
parent | 70d3a915fa7b375e4b3c4198ae7c7c9687927942 (diff) | |
download | abrt-885a306642f5b3e5b17715893c515a6b4ccb6092.tar.gz abrt-885a306642f5b3e5b17715893c515a6b4ccb6092.tar.xz abrt-885a306642f5b3e5b17715893c515a6b4ccb6092.zip |
tutorial how-to build your own reporter plugin
Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
Diffstat (limited to 'doc/abrt-plugin/Makefile')
-rw-r--r-- | doc/abrt-plugin/Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/abrt-plugin/Makefile b/doc/abrt-plugin/Makefile new file mode 100644 index 00000000..31eb228e --- /dev/null +++ b/doc/abrt-plugin/Makefile @@ -0,0 +1,26 @@ +PROGRAM = libHelloWorld +CXX = g++ +SRCS += abrt-reporter-hello-world.cpp +OBJS += $(addsuffix .o, $(basename $(SRCS))) + + +.PHONY: clean install uninstall + +%.o: %.cpp + $(CXX) `pkg-config --cflags --libs abrt` -m64 -c -Wall -std=c++98 -pedantic $< + +$(PROGRAM).so: $(OBJS) + $(CXX) -shared $< -o $@ + +clean: + rm -f *.o *.so + +install: + install -m 755 -D $(PROGRAM).so /usr/lib64/abrt/ + install -m 644 -D HelloWorld.conf /etc/abrt/plugins/ + +uninstall: + rm -f /usr/lib64/abrt/$(PROGRAM).so + rm -f /etc/abrt/plugins/HelloWorld.conf + + |