summaryrefslogtreecommitdiffstats
path: root/doc/abrt-plugin/Makefile
blob: 31eb228eeb4ed793c0dd535ff8f4c07591668ee0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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