| 1 |
adx |
30 |
# $Id: Makefile.in,v 7.48 2005/07/11 23:19:38 metalrock Exp $ |
| 2 |
|
|
|
| 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 |