2008-04-06 12:46:52 +02:00
|
|
|
#
|
|
|
|
# Makefile.in for ssld/src
|
|
|
|
#
|
|
|
|
# $Id: Makefile.in 1285 2006-05-05 15:03:53Z nenolod $
|
|
|
|
#
|
|
|
|
|
|
|
|
CC = @CC@
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_BIN = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
INSTALL_SUID = @INSTALL_PROGRAM@ -o root -m 4755
|
|
|
|
RM = @RM@
|
|
|
|
LEX = @LEX@
|
|
|
|
LEXLIB = @LEXLIB@
|
|
|
|
CFLAGS = @IRC_CFLAGS@ -DIRCD_PREFIX=\"@prefix@\"
|
|
|
|
LDFLAGS = @LDFLAGS@
|
|
|
|
MKDEP = @MKDEP@ -DIRCD_PREFIX=\"@prefix@\"
|
|
|
|
MV = @MV@
|
|
|
|
RM = @RM@
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
bindir = @bindir@
|
2008-05-17 17:46:37 +02:00
|
|
|
libdir = @libdir@
|
2008-04-06 12:46:52 +02:00
|
|
|
libexecdir = @libexecdir@
|
2012-03-01 03:41:09 +01:00
|
|
|
pkglibexecdir = @pkglibexecdir@
|
2012-03-02 02:11:42 +01:00
|
|
|
sysconfdir = @sysconfdir@
|
2008-04-06 12:46:52 +02:00
|
|
|
localstatedir = @localstatedir@
|
2012-03-01 03:41:09 +01:00
|
|
|
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
|
|
|
|
|
|
|
PROGRAM_PREFIX = @PROGRAM_PREFIX@
|
2008-04-06 12:46:52 +02:00
|
|
|
|
|
|
|
ZIP_LIB = @ZLIB_LD@
|
|
|
|
|
2008-05-17 17:46:37 +02:00
|
|
|
IRCDLIBS = @MODULES_LIBS@ -L../libratbox/src/.libs -lratbox @LIBS@ $(SSL_LIBS) $(ZIP_LIB)
|
2008-04-06 12:46:52 +02:00
|
|
|
|
|
|
|
INCLUDES = -I. -I../include -I../libratbox/include $(SSL_INCLUDES)
|
|
|
|
CPPFLAGS = ${INCLUDES} @CPPFLAGS@
|
|
|
|
|
2012-03-01 03:41:09 +01:00
|
|
|
pkglibexec_PROGS = ssld
|
|
|
|
PROGS = $(pkglibexec_PROGS)
|
2008-04-06 12:46:52 +02:00
|
|
|
|
|
|
|
SOURCES = \
|
|
|
|
ssld.c
|
|
|
|
|
|
|
|
|
|
|
|
OBJECTS = ${SOURCES:.c=.o}
|
|
|
|
|
|
|
|
all: ssld
|
|
|
|
|
|
|
|
build: all
|
|
|
|
|
|
|
|
ssld: ${OBJECTS}
|
|
|
|
${CC} ${CFLAGS} ${LDFLAGS} -o $@ ${OBJECTS} ${IRCDLIBS}
|
|
|
|
|
2012-03-01 03:41:09 +01:00
|
|
|
install-mkdirs:
|
|
|
|
-@for dir in '$(bindir)' '$(pkglibexecdir)'; do \
|
|
|
|
if test ! -d '$(DESTDIR)'"$${dir}"; then \
|
|
|
|
mkdir -p -m 755 '$(DESTDIR)'"$${dir}"; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
|
|
|
|
install: install-mkdirs build
|
2008-04-06 12:46:52 +02:00
|
|
|
@echo "ircd: installing ssld ($(PROGS))"
|
2012-03-01 03:41:09 +01:00
|
|
|
@for i in $(bin_PROGS); do \
|
2008-04-06 12:46:52 +02:00
|
|
|
if test -f $(DESTDIR)$(bindir)/$$i; then \
|
2012-03-01 03:41:09 +01:00
|
|
|
$(MV) $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)$$i $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)$$i.old; \
|
2008-04-06 12:46:52 +02:00
|
|
|
fi; \
|
2012-03-01 03:41:09 +01:00
|
|
|
$(INSTALL_BIN) $$i $(DESTDIR)$(bindir)/$(PROGRAM_PREFIX)$$i; \
|
2008-04-06 12:46:52 +02:00
|
|
|
done
|
2012-03-01 03:41:09 +01:00
|
|
|
@for i in $(pkglibexec_PROGS); do \
|
|
|
|
if test -f '$(DESTDIR)$(pkglibexecdir)/'$$i; then \
|
|
|
|
$(MV) '$(DESTDIR)$(pkglibexecdir)/'$$i '$(DESTDIR)$(pkglibexecdir)/'$$i.old; \
|
|
|
|
fi; \
|
|
|
|
$(INSTALL_BIN) $$i '$(DESTDIR)$(pkglibexecdir)/'$$i; \
|
|
|
|
done
|
2008-04-06 12:46:52 +02:00
|
|
|
|
|
|
|
.c.o:
|
|
|
|
${CC} ${CPPFLAGS} ${CFLAGS} -c $<
|
|
|
|
|
|
|
|
.PHONY: depend clean distclean
|
|
|
|
depend:
|
|
|
|
@${MKDEP} ${CPPFLAGS} ${SOURCES} > .depend.tmp
|
|
|
|
@sed -e '/^# DO NOT DELETE THIS LINE/,$$d' <Makefile >Makefile.depend
|
|
|
|
@echo '# DO NOT DELETE THIS LINE!!!' >>Makefile.depend
|
|
|
|
@echo '# make depend needs it.' >>Makefile.depend
|
|
|
|
@cat .depend.tmp >>Makefile.depend
|
|
|
|
@mv Makefile.depend Makefile
|
|
|
|
@rm -f .depend.tmp
|
|
|
|
|
|
|
|
clean:
|
|
|
|
${RM} -f *.o *~ *.core core ssld
|
|
|
|
|
|
|
|
lint:
|
|
|
|
lint -aacgprxhH $(CPPFLAGS) -DIRCD_PREFIX=\"@prefix@\" $(SOURCES) >>../lint.out
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
${RM} -f Makefile
|
|
|
|
|
|
|
|
# End of Makefile
|