File: Makefile.in

package info (click to toggle)
msktutil 0.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 752 kB
  • ctags: 279
  • sloc: cpp: 2,607; perl: 254; xml: 231; ansic: 85; makefile: 49; sh: 44
file content (49 lines) | stat: -rw-r--r-- 1,215 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
PROG=@PACKAGE_NAME@
SHELL=/bin/sh
srcdir = @srcdir@
VPATH=@srcdir@
prefix=@prefix@
sbindir=$(prefix)/sbin
mandir=@mandir@
CXX=@CXX@
CPPFLAGS=@CPPFLAGS@ -I.
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


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

all: $(PROG)

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

%.o : %.cpp msktutil.h krb5wrap.h config.h
	@$(ECHO) "Compiling $<"
	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@


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

install: all
	@$(MKDIR) -p $(DESTDIR)$(sbindir)
	@$(MKDIR) -p $(DESTDIR)$(mandir)/man1
	@$(INSTALL) $(PROG) $(DESTDIR)$(sbindir)
	@$(CAT) $(srcdir)/msktutil.M | $(SED) -e "s/REPLACE_PROGNAME/@PACKAGE_NAME@/g" | $(SED) -e "s/REPLACE_VERSION/@PACKAGE_VERSION@/g" | $(SED) -e "s/REPLACE_AUTHOR/@PACKAGE_AUTHOR@/g" > $(DESTDIR)$(mandir)/man1/@PACKAGE_NAME@.1

distcheck:
	@$(ECHO) @PACKAGE_VERSION@