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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143
|
# Generated automatically from Makefile.in by configure.
##############################
# Makefile for QuickPage #
##############################
CCENV= -DTCP_WRAPPERS
#DEBUG= -g -DDEBUG
CFLAGS= $(DEBUG) $(CCENV)
CPPFLAGS= -I/usr/local/include
LDFLAGS= -L/usr/local/lib
LDLIBS= -lwrap -lnsl -lsocket
prefix= /usr/local
exec_prefix= ${prefix}
bindir= ${exec_prefix}/bin
mandir= ${prefix}/man
CC= cc
RM= /bin/rm -f
CP= /bin/cp
CHMOD= /bin/chmod
MKDIR= /bin/mkdir
#####################################################################
# ----- you shouldn't need to change anything below this line ----- #
#####################################################################
VERSION= 3.3
PROG= qpage
NAME= $(PROG)-$(VERSION)
INCL= $(PROG).h config.h
SRCS= $(PROG).c usersnpp.c srvrsnpp.c queue.c \
config.c util.c ixo.c ident.c readmail.c \
sendmail.c
OBJS= $(PROG).o usersnpp.o srvrsnpp.o queue.o \
config.o util.o ixo.o ident.o readmail.o \
sendmail.o
CLNTSRCS= $(PROG).c usersnpp.c util.c readmail.c
CLNTOBJS= $(PROG).o usersnpp.o util.o readmail.o
.c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
all: config-check $(PROG)
config-check .cflags: config.h
@set +e; echo $(CFLAGS) > .cflags.$$$$ ; \
if cmp .cflags .cflags.$$$$ ; \
then rm .cflags.$$$$ ; \
else mv .cflags.$$$$ .cflags ; \
fi >/dev/null 2>/dev/null
config.h:
@echo
@echo 'Please type "./configure" first!'
@echo
@exit 1
install: all
$(RM) $(bindir)/$(PROG)
$(MKDIR) -p $(bindir)
$(CP) $(PROG) $(bindir)
$(RM) $(mandir)/man1/$(PROG).1
$(MKDIR) -p $(mandir)/man1
$(CP) $(PROG).man $(mandir)/man1/$(PROG).1
# $(INSTALL) S99qpage /etc/rc3.d
# ln /etc/rc3.d/S99qpage /etc/init.d/qpage
$(OBJS): $(INCL) Makefile
$(CLNTOBJS): .cflags
$(PROG): $(OBJS)
$(RM) $(PROG)
$(CC) -o $(PROG) $(OBJS) $(LDFLAGS) $(LDLIBS)
client:
@$(MAKE) CCENV='-DCLIENT_ONLY $(CCENV)' OBJS="$(CLNTOBJS)"
lint:
$(LINT) -mux $(CPPFLAGS) $(CCENV) $(SRCS)
client-lint:
$(LINT) -mux -DCLIENT_ONLY $(CPPFLAGS) $(CCENV) $(CLNTSRCS)
client-install:
@$(MAKE) CCENV='-DCLIENT_ONLY $(CCENV)' OBJS="$(CLNTOBJS)" \
install
clean:
$(RM) $(PROG) $(OBJS) .cflags core tags
clobber: clean
$(RM) config.h config.cache config.log config.status
##########################################################################
# ----- everything below this line is intended for developers only ----- #
##########################################################################
tar: clean history doc
$(RM) ../$(NAME).work-in-progress.tar.Z ../$(NAME).tar.Z
tar -cvf ../$(NAME).work-in-progress.tar -C .. $(NAME)
compress ../$(NAME).work-in-progress.tar
(cd ..; tar -cvfFFX - $(NAME)/exclude $(NAME)/* \
| compress > $(NAME).tar.Z)
zcat ../$(NAME).tar.Z | tar -tvf -
tags: $(SRCS) $(INCL)
ctags $(SRCS) $(INCL)
history:
sccs prt $(SRCS) > HISTORY
last:
@sccs prt -y $(SRCS) | awk '{print $$1,$$2,$$3,$$4,$$5,$$6}'
version:
sccs admin -f q$(VERSION) $(PROG).h $(SRCS)
sed 's/VERSION/$(VERSION)/' exclude.in > exclude
diffs:
sccs diffs $(INCL) $(SRCS)
doc: $(PROG).man
troff -man qpage.man \
| /usr/lib/lp/postscript/dpost > qpage.ps
nroff -man $(PROG).man \
| sed -e 's/.//g' > $(PROG).doc
pkg:
pkgmk -o -d /tmp PSTAMP=`date "+%y%m%d"`
pkgtrans -os /tmp TJDtmp TJDqpage
mv /tmp/TJDtmp TJDqpage
rm -rf /tmp/TJDqpage
|