/[svn]/ircd-hybrid-7.2/tools/Makefile.in
ViewVC logotype

Annotation of /ircd-hybrid-7.2/tools/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 34 - (hide annotations)
Sun Oct 2 21:05:51 2005 UTC (14 years, 11 months ago) by lusky
File size: 1214 byte(s)
create 7.2 branch, we can move/rename it as needed.


1 knight 31 # $Id$
2 adx 30
3     CC = @CC@
4     INSTALL = @INSTALL@
5     INSTALL_BIN = @INSTALL_PROGRAM@
6     RM = @RM@
7     CFLAGS = @IRC_CFLAGS@
8     CPPFLAGS = @CPPFLAGS@
9     LDFLAGS = @LDFLAGS@
10     MV = @MV@
11     RM = @RM@
12     LN = @LN@
13    
14     CLOBBER=@CLOBBER@
15    
16     SSL_LIBS = @SSL_LIBS@
17     SSL_INCLUDES = @SSL_INCLUDES@
18     CRYPT_LIB = @CRYPT_LIB@
19    
20     INCLUDES = -I../include $(SSL_INCLUDES)
21    
22     prefix = $(DESTDIR)@prefix@
23     exec_prefix = $(DESTDIR)@exec_prefix@
24     bindir = $(DESTDIR)@bindir@
25    
26     PROGS = mkpasswd @ENCSPEED@
27    
28     all: $(PROGS)
29    
30     build: all
31    
32     # We must link these two against special libs
33     encspeed: ../include/setup.h encspeed.c
34     $(CC) $(CFLAGS) $(INCLUDES) $(LDFLAGS) encspeed.c -o encspeed $(SSL_LIBS)
35    
36     mkpasswd: ../include/setup.h mkpasswd.c
37     $(CC) $(CFLAGS) $(INCLUDES) $(LDFLAGS) mkpasswd.c -o mkpasswd $(CRYPT_LIB)
38    
39     # Default rule for everything
40    
41     clean:
42     $(RM) -f *.o *~ core *.exe $(PROGS)
43    
44     distclean: clean
45     $(RM) -f Makefile
46    
47     install: build
48     mkdir -p $(bindir)
49     @for i in $(PROGS); do \
50     if test -f $(bindir)/$$i -a -z "$(CLOBBER)"; then \
51     echo $(MV) $(bindir)/$$i $(bindir)/$$i.old; \
52     $(MV) $(bindir)/$$i $(bindir)/$$i.old; \
53     fi; \
54     echo $(INSTALL_BIN) $$i $(bindir); \
55     $(INSTALL_BIN) $$i $(bindir); \
56     done
57    
58     .PHONY: install distclean clean build

Properties

Name Value
svn:eol-style native
svn:keywords Id Revision

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28