1 |
knight |
31 |
# $Id$ |
2 |
adx |
30 |
|
3 |
|
|
CC = @CC@ |
4 |
|
|
AR = @AR@ |
5 |
|
|
RM = @RM@ |
6 |
|
|
SED = @SED@ |
7 |
|
|
SEDOBJ = @SEDOBJ@ |
8 |
|
|
STDOUT = @STDOUT@ |
9 |
|
|
CFLAGS = @IRC_CFLAGS@ |
10 |
|
|
MKDEP = @MKDEP@ |
11 |
|
|
MV = @MV@ |
12 |
|
|
LD = @LD@ |
13 |
|
|
|
14 |
|
|
IRCDLIBS = @LIBS@ $(SSL_LIBS) |
15 |
|
|
|
16 |
|
|
INCLUDES = -I. |
17 |
|
|
CPPFLAGS = ${INCLUDES} @CPPFLAGS@ |
18 |
|
|
|
19 |
|
|
PCRE_SRCS = \ |
20 |
|
|
pcre_chartables.c \ |
21 |
|
|
pcre_compile.c \ |
22 |
|
|
pcre_exec.c \ |
23 |
|
|
pcre_globals.c \ |
24 |
|
|
pcre_study.c \ |
25 |
|
|
pcre_tables.c \ |
26 |
|
|
pcre_fullinfo.c \ |
27 |
|
|
pcre_try_flipped.c |
28 |
|
|
|
29 |
|
|
PCRE_OBJS = ${PCRE_SRCS:.c=.o} |
30 |
|
|
|
31 |
|
|
default: build |
32 |
|
|
build: all |
33 |
|
|
all: .depend libpcre.a |
34 |
|
|
|
35 |
|
|
libpcre.a: $(PCRE_OBJS) |
36 |
|
|
$(RM) -f $@ |
37 |
|
|
$(AR) csrv $@ $(PCRE_OBJS) |
38 |
|
|
|
39 |
|
|
.c.o: |
40 |
|
|
${CC} ${CPPFLAGS} ${CFLAGS} -c $< -o $@ |
41 |
|
|
|
42 |
|
|
.depend: |
43 |
|
|
${MKDEP} ${CPPFLAGS} ${PCRE_SRCS} ${STDOUT} |
44 |
|
|
@${SED} -e '/^# Autogenerated - do not delete/,$$d' <Makefile >Makefile.depend |
45 |
|
|
@echo "# Autogenerated - do not delete" >>Makefile.depend |
46 |
|
|
@echo "include .depend" >> Makefile.depend |
47 |
|
|
@${MV} Makefile.depend Makefile |
48 |
|
|
|
49 |
|
|
clean: |
50 |
|
|
${RM} -f $(PCRE_OBJS) libpcre.a |
51 |
|
|
|
52 |
|
|
distclean: clean |
53 |
|
|
${RM} -f Makefile .depend |
54 |
|
|
|
55 |
|
|
install: |
56 |
|
|
|
57 |
|
|
.PHONY: clean distclean install build |