summaryrefslogtreecommitdiffstats
path: root/web/Makefile.old
blob: db2735bf37b38ca0063f97c01e435b90da35fa80 (plain) (blame)
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
##
##  Apache Makefile, automatically generated by Configure script.
##  Hand-edited changes will be lost if the Configure script is re-run.
##  Sources: - ../../Makefile.config (via Configuration)
##           - ./Makefile.tmpl
##

##
##  Inherited Makefile options from Configure script
##  (Begin of automatically generated section)
##
SRCDIR=../..
EXTRA_CFLAGS=
EXTRA_LDFLAGS=
EXTRA_LIBS=
EXTRA_INCLUDES=
EXTRA_DEPS=
OSDIR=$(SRCDIR)/os/unix
INCDIR=$(SRCDIR)/include
INCLUDES0=-I$(OSDIR) -I$(INCDIR) -I../$(INCDIR)
SHELL=/bin/sh
OS=FreeBSD 4.6
CC=gcc
CPP=gcc -E
TARGET=httpd
OPTIM=
CFLAGS1= -funsigned-char -DUSE_EXPAT -I$(SRCDIR)/lib/expat-lite -DNO_DL_NEEDED
INCLUDES1=
LIBS_SHLIB=
LDFLAGS1=
MFLAGS_STATIC=
REGLIB=
EXPATLIB=lib/expat-lite/libexpat.a
RANLIB=ranlib
LIBS1=  -lcrypt
##
##  (End of automatically generated section)
##

##
##  Default Makefile options from Configure script
##  (Begin of automatically generated section)
##
CFLAGS=$(OPTIM) $(CFLAGS1) $(EXTRA_CFLAGS)
LIBS=$(EXTRA_LIBS) $(LIBS1)
INCLUDES=$(INCLUDES1) $(INCLUDES0) $(EXTRA_INCLUDES)
LDFLAGS=$(LDFLAGS1) $(EXTRA_LDFLAGS)
INCDIR=$(SRCDIR)/include
OBJS=mod_ptt.o parse_html.o
BBSLIBS=util_cache.o util_passwd.o util_record.o
LIB=libptt.a
SHLIBS=
OBJS_PIC=

all: lib shlib

lib:    $(LIB) 

shlib:  $(SHLIBS)

dummy $(LIB): $(OBJS)
    rm -f $@
    ar cr $@ $(OBJS) $(BBSLIBS)
    $(RANLIB) $@

.SUFFIXES: .o .so .dll

.c.o:
    $(CC) -c $(INCLUDES) $(CFLAGS) $<

.c.so:
    $(CC) -c $(INCLUDES) $(CFLAGS) $(CFLAGS_SHLIB) $< && mv $*.o $*.lo
    $(LD_SHLIB) $(LDFLAGS_SHLIB) -o $@ $*.lo $(LIBS_SHLIB)

clean:
    rm -f $(LIB) $(OBJS) $(SHLIBS) $(OBJS_PIC)

distclean: clean
    rm -f Makefile

#   NOT FOR END USERS!
depend:
    cp Makefile.tmpl Makefile.tmpl.bak \
        && sed -ne '1,/^# DO NOT REMOVE/p' Makefile.tmpl > Makefile.new \
        && gcc -MM $(INCLUDES) $(CFLAGS) *.c >> Makefile.new \
        && sed -e '1,$$s: $(INCDIR)/: $$(INCDIR)/:g' \
           -e '1,$$s: $(OSDIR)/: $$(OSDIR)/:g' Makefile.new \
        > Makefile.tmpl \
        && rm Makefile.new

##
##  (End of automatically generated section)
##

#Dependencies

$(OBJS) $(OBJS_PIC): Makefile

# DO NOT REMOVE
mod_ptt.o: mod_ptt.c $(INCDIR)/httpd.h \
 $(INCDIR)/ap_config.h $(INCDIR)/ap_mmn.h \
 $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h \
 $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h \
 $(INCDIR)/ap_alloc.h $(INCDIR)/buff.h $(INCDIR)/ap.h \
 $(INCDIR)/util_uri.h $(INCDIR)/http_config.h \
 $(INCDIR)/http_core.h $(INCDIR)/http_log.h \
 $(INCDIR)/http_main.h $(INCDIR)/http_protocol.h \
 $(INCDIR)/util_script.h \
 /home/bbs/pttbbs/include/bbs.h

parse_html.o: parse_html.c $(INCDIR)/httpd.h \
 $(INCDIR)/ap_config.h $(INCDIR)/ap_mmn.h \
 $(INCDIR)/ap_config_auto.h $(OSDIR)/os.h \
 $(INCDIR)/ap_ctype.h $(INCDIR)/hsregex.h \
 $(INCDIR)/ap_alloc.h $(INCDIR)/buff.h $(INCDIR)/ap.h \
 $(INCDIR)/util_uri.h $(INCDIR)/http_config.h \
 $(INCDIR)/http_core.h $(INCDIR)/http_log.h \
 $(INCDIR)/http_main.h $(INCDIR)/http_protocol.h \
 $(INCDIR)/util_script.h \
 /home/bbs/pttbbs/include/bbs.h