File: Makefile.in

package info (click to toggle)
msktutil 1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid, stretch
  • size: 568 kB
  • ctags: 363
  • sloc: cpp: 4,051; xml: 231; ansic: 85; makefile: 47; sh: 44
file content (53 lines) | stat: -rw-r--r-- 1,277 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
PROG=@PACKAGE_NAME@
SHELL=/bin/sh
srcdir = @srcdir@
VPATH=@srcdir@
prefix=@prefix@
sbindir=$(prefix)/sbin
mandir=@mandir@
CXX=@CXX@
CC=@CC@
CPPFLAGS=-I. @CPPFLAGS@
CXXFLAGS=@CXXFLAGS@ $(WARNFLAGS)
LDFLAGS=@LDFLAGS@
LIBS=@LIBS@
INSTALL=@INSTALL@
RM=@RM@ -rf
CP=@CP@ -f
SED=@SED@
CAT=@CAT@
ECHO=@ECHO@
MKDIR=@MKDIR@
WARNFLAGS=-Wall -Wextra -Wno-write-strings
MAN=$(PROG).1

objects = krb5wrap.o msktutil.o msktkrb5.o msktldap.o msktname.o msktpass.o msktconf.o strtoll.o ldapconnection.o

all: $(PROG) $(MAN)

$(PROG) : $(objects)
	@$(ECHO) "Assembling $(PROG)"
	$(CXX) $(LDFLAGS) $(objects) $(LIBS) -o $(PROG)

%.o : %.cpp msktutil.h krb5wrap.h config.h ldapconnection.h
	@$(ECHO) "Compiling $<"
	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -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~

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

distcheck:
	@$(ECHO) @PACKAGE_VERSION@