~ubuntu-branches/ubuntu/precise/whois/precise

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2011-10-22 07:43:54 UTC
  • mfrom: (5.4.4 sid)
  • Revision ID: package-import@ubuntu.com-20111022074354-c7upaddqn9g1ifyz
Tags: 5.0.12ubuntu1
* Merge from Debian testing.  Remaining changes:
  - Add replaces/conflicts as mkpasswd is no longer a separate package.
    + Note: This needs to be kept until the next LTS release
      as mkpasswd is a published package in lucid.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
prefix = /usr
2
2
 
3
 
CFLAGS = -g -O2
 
3
CFLAGS ?= -g -O2
4
4
 
5
5
PERL = perl
6
6
INSTALL = install
44
44
 
45
45
ifdef HAVE_XCRYPT
46
46
mkpasswd_LDADD += -lxcrypt
47
 
DEFS += -DHAVE_XCRYPT
 
47
DEFS += -DHAVE_XCRYPT -DHAVE_LINUX_CRYPT_GENSALT
48
48
else
 
49
ifdef HAVE_LINUX_CRYPT_GENSALT
 
50
# owl and openSUSE have crypt_gensalt(3) in the libc's libcrypt
 
51
DEFS += -DHAVE_LINUX_CRYPT_GENSALT
 
52
endif
49
53
mkpasswd_LDADD += -lcrypt
50
54
endif
51
55
 
 
56
CPPFLAGS += $(DEFS) $(INCLUDES)
 
57
 
52
58
##############################################################################
53
59
all: Makefile.depend whois mkpasswd #pos
54
60
 
55
61
##############################################################################
56
62
%.o: %.c
57
 
        $(CC) $(DEFS) $(INCLUDES) $(CFLAGS) -c $<
 
63
        $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
58
64
 
59
65
whois: $(whois_OBJECTS)
60
66
        $(CC) $(LDFLAGS) -o $@ $^ $(whois_LDADD) $(LIBS)
104
110
 
105
111
clean:
106
112
        rm -f Makefile.depend as_del.h ip_del.h ip6_del.h tld_serv.h \
107
 
                *.o whois mkpasswd
 
113
                servers_charset.h *.o whois mkpasswd
108
114
        rm -f po/*.mo
109
115
 
110
116
pos:
112
118
 
113
119
depend: Makefile.depend
114
120
Makefile.depend:
115
 
        $(CC) $(DEFS) $(INCLUDES) $(CFLAGS) -MM -MG *.c > $@
 
121
        $(CC) $(CPPFLAGS) $(CFLAGS) -MM -MG *.c > $@
116
122
 
117
123
-include Makefile.depend