File: Makefile

package info (click to toggle)
pam-krb5-migrate 0.0.11-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 192 kB
  • ctags: 20
  • sloc: ansic: 379; makefile: 61; sh: 10
file content (41 lines) | stat: -rw-r--r-- 1,051 bytes parent folder | download | duplicates (3)
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
include Makefile.settings
LDFLAGS += -Wl,-Bsymbolic -Wl,-x -shared
CFLAGS += `$(KRB5CONFIG) --cflags krb5 kadm-client`
CFLAGS += $(COM_ERR_CFLAGS)
CFLAGS += -fPIC

# Uncomment these lines to build the module with local db support.
#KLOCAL = -DKADMIN_LOCAL
#LIBS   = -lkadm5srv

# Uncomment these lines to build the module with remote kadmin support.
KLOCAL =
LIBS  += `$(KRB5CONFIG) --libs krb5 kadm-client`
LIBS += $(COM_ERR_LIBS)
LIBS  += -lc

all: pam_krb5_migrate.so

pam_krb5_migrate.so: pam_krb5_migrate.o
	$(CC) -Wl,-z,defs $(LDFLAGS) -o pam_krb5_migrate.so \
	  pam_krb5_migrate.o $(LIBS)

pam_krb5_migrate.o: pam_krb5_migrate.c
	$(CC) -o $@ -c $< $(KLOCAL) $(CFLAGS) $(DEFS)

check:: 

install: all
	install -d $(DESTDIR)/lib/security
	install -d $(DESTDIR)$(mandir)/man7
	install -m755 -o root pam_krb5_migrate.so $(DESTDIR)/lib/security/
	install -m0644 -o root pam_krb5_migrate.7 $(DESTDIR)$(mandir)/man7

ctags:
	ctags -R .

clean:
	rm -f *.o *.so test

distclean:: clean
	rm -rf autom4te.cache config.log config.status Makefile.settings