File: Makefile.in

package info (click to toggle)
msktutil 1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 608 kB
  • sloc: cpp: 5,021; xml: 231; ansic: 79; makefile: 61; sh: 46
file content (68 lines) | stat: -rw-r--r-- 1,781 bytes parent folder | download
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
PROG=@PACKAGE_NAME@
SHELL=/bin/sh
srcdir=@srcdir@
VPATH=@srcdir@
prefix=@prefix@
datarootdir=@datarootdir@
sbindir=$(prefix)/sbin
mandir=@mandir@
CXX=@CXX@
CC=@CC@
CPPFLAGS=-I. @CPPFLAGS@
CXXFLAGS=@CXXFLAGS@ @WARNFLAGS@
CFLAGS=@CFLAGS@ @WARNFLAGS@
LDFLAGS=@LDFLAGS@
LIBS=@LIBS@
INSTALL=@INSTALL@
RM=@RM@ -rf
CP=@CP@ -f
SED=@SED@
CAT=@CAT@
ECHO=@ECHO@
MKDIR=@MKDIR@
MAN=$(PROG).1
SOURCES_CPP=krb5wrap.cpp msktutil.cpp msktkrb5.cpp msktldap.cpp msktname.cpp msktpass.cpp msktconf.cpp ldapconnection.cpp
SOURCES_C=strtoll.c
SOURCES=$(SOURCES_CPP) $(SOURCES_C)
HEADERS=msktutil.h msktname.h krb5wrap.h ldapconnection.h
OBJECTS=$(SOURCES_CPP:.cpp=.o) $(SOURCES_C:.c=.o)

.SUFFIXES: .c .cpp .o

all: $(PROG) $(MAN)

$(PROG): $(OBJECTS)
	$(CXX) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $(PROG)

.cpp.o: $(HEADERS) config.h
	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@

.c.o: config.h
	$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@

$(MAN): msktutil.M Makefile
	$(SED) -e "s/REPLACE_PROGNAME/@PACKAGE_NAME@/g" \
		-e "s/REPLACE_VERSION/@PACKAGE_VERSION@/g" < $(srcdir)/msktutil.M >$@

clean:
	$(RM) $(PROG) $(OBJECTS) $(MAN)

distclean: clean
	$(RM) Makefile config.h config.log config.cache config.status autom4te.cache config.h~ config.h.in~ config.h.in

configure config.h.in: configure.in
	./autogen.sh

install: all
	$(MKDIR) -p $(DESTDIR)$(sbindir)
	$(MKDIR) -p $(DESTDIR)$(mandir)/man1
	$(INSTALL) -m 0755 $(PROG) $(DESTDIR)$(sbindir)
	$(INSTALL) -m 0644 $(MAN) $(DESTDIR)$(mandir)/man1

distcheck:
	@$(ECHO) @PACKAGE_VERSION@

dist: config.h.in configure
	tar -s +^+msktutil-@PACKAGE_VERSION@/+ -jcvf msktutil-@PACKAGE_VERSION@.tar.bz2 \
                $(SOURCES) $(HEADERS) configure README LICENSE ChangeLog INSTALL \
                Makefile.in configure.in config.h.in msktutil.M autogen.sh