summaryrefslogtreecommitdiffstats
path: root/kppp/Makefile.am
blob: 572add898c90fbf8758912e416e33fed6edec363 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# Yow Emacs, this is a -*- makefile -*-

# if you use a variable *dir and have *_DATA, it will be installed by
# make install
xdg_apps_DATA = Kppp.desktop

EXTRA_DIST = $(xdg_apps_DATA)

# set the include path for X, qt and KDE
INCLUDES= $(all_includes)
# claim, which subdirectories you want to install
SUBDIRS = pixmaps icons logview Rules DB

# This one gets installed 
bin_PROGRAMS = 	kppp

# Which sources should be compiled for kppp.
kppp_SOURCES	= kpppwidget.cpp \
		general.cpp \
		accounts.cpp \
		connect.cpp \
		conwindow.cpp \
		debug.cpp \
		edit.cpp \
		iplined.cpp \
		main.cpp \
                modem.cpp \
		modemcmds.cpp \
		pppdargs.cpp \
		pppdata.cpp \
		scriptedit.cpp\
		pwentry.cpp \
		modeminfo.cpp\
		pppstatdlg.cpp\
		pppstats.cpp\
		miniterm.cpp\
		accounting.cpp \
		acctselect.cpp\
		ruleset.cpp \
		docking.cpp \
		runtests.cpp \
		loginterm.cpp \
		ppplog.cpp \
		newwidget.cpp \
		requester.cpp \
		opener.cpp \
		modemdb.cpp \
		utils.cpp \
		providerdb.cpp \
		modems.cpp \
		KPPPIface.skel

# the library search path
kppp_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) $(LIB_KDECORE) -lDCOP

# the libraries to link against. Be aware of the order. First the libraries,
# that depend on the following ones.
kppp_LDADD   =       -lm $(LIB_KIO) $(LIB_KDEUI)

# this option you can leave out. Just, if you use "make dist", you need it
noinst_HEADERS = kpppwidget.h \
		accounts.h \
		kpppconfig.h \
		connect.h \
		conwindow.h \
		debug.h \
		edit.h \
		general.h \
		iplined.h \
		main.h \
                modem.h \
		modemcmds.h \
		pppdargs.h \
		pppdata.h \
		scriptedit.h\
		pwentry.h \
		modeminfo.h\
		pppstatdlg.h\
		miniterm.h\
		accounting.h \
		acctselect.h\
		ruleset.h \
		docking.h \
		runtests.h \
		loginterm.h \
		auth.h \
		version.h \
		macros.h \
		ppplog.h \
		newwidget.h \
		modemdb.h \
		utils.h \
		providerdb.h \
		modems.h \
		KPPPIface.h

METASOURCES = accounting.moc \
	accounts.moc \
	acctselect.moc \
	connect.moc \
	conwindow.moc \
	debug.moc \
	docking.moc \
	edit.moc \
	general.moc \
	loginterm.moc \
	kpppwidget.moc \
	miniterm.moc \
	modem.moc \
	modemcmds.moc \
	modemdb.moc \
	modeminfo.moc \
	pppdargs.moc \
	pppstatdlg.moc \
	pppstats.moc \
	pwentry.moc \
	scriptedit.moc \
	providerdb.moc \
	modems.moc

messages: 
	$(XGETTEXT) *.cpp -o $(podir)/kppp.pot

# just install datas here. Use install-exec-data for scripts and etc.
# the binary itself is already installed from automake
# use mkinstalldirs, not "install -d"
# don't install a list of file. Just one file per install.
# if you have more of them, create a subdirectory with an extra Makefile 
install-data-local:
	@echo ""
	@echo "Don't forget to send me a phone tarif rules file for your"
	@echo "telecom company/country/region. Thanks."
	@echo ""
	@echo "We will be maintaining an archive on the kppp page at"
	@echo "http://devel-home.kde.org/~kppp/index.html"
	@echo "WARNING: kppp is by default installed with SETUID bit on!"
	@echo  "If you are concerned about the SETUID bit, create a modem"
	@echo "group instead."
	@echo ""
	@echo "Happy Dialing! -- the KPPP team"
	@echo ""

# kppp wants to be installed suid root
install-exec-hook:
	@(chown root $(DESTDIR)/$(bindir)/kppp && chmod 4755 $(DESTDIR)/$(bindir)/kppp) || echo "Was not able to make kppp setuid root"

# remove ALL you have installed in install-data-local or install-exec-local
#uninstall-local:
#	@(cd Rules && $(MAKE) uninstall)

#distclean-local:
#	@(cd Rules && $(MAKE) distclean)