Changes for compatibility with Apache 2.
[hcoop/zz_old/modwaklog.git] / Makefile
CommitLineData
313dde40 1ALL= mod_waklog.so
bed98ff9 2
87822447 3APXS= /usr/sbin/apxs
bed98ff9 4CC= gcc
5
87822447 6INC= -I/usr/local/mit-k5/include \
7 -I/usr/include \
8 -I/usr/include/apr-0
9a317569 9
161ffd84 10LIB= -L/usr/local/mit-k5/lib \
11 -lkrb5 -lk5crypto -lcom_err \
87822447 12 -L/usr/lib/afs -lsys -lrx -llwp -lauth -lafsutil -lresolv
9a317569 13
7193eb01 14CFLAGS= ${DEF} ${INC} -DEAPI -g
313dde40 15OBJ= mod_waklog.o lifetime.o version.o
bed98ff9 16
17all: ${ALL}
18
b429ae96 19version.o : version.c
20 date +%Y%m%d > VERSION
21 ${CC} ${CFLAGS} \
22 -DVERSION=\"`cat VERSION`\" \
23 -c version.c
24
313dde40 25mod_waklog.so: ${OBJ}
bed98ff9 26 ${APXS} -c ${LIB} ${OBJ}
87822447 27 mv .libs/${ALL} .
bed98ff9 28
29clean:
87822447 30 rm -f *.o *.so a.out core
bed98ff9 31 rm -f ${ALL}
87822447 32 rm -rf .libs