1 #-----------------------------------------------------------------------------
2 # Copyright (c) 1995 Regents of the University of Michigan.
5 # Redistribution and use in source and binary forms are permitted
6 # provided that this notice is preserved and that due credit is given
7 # to the University of Michigan at Ann Arbor. The name of the University
8 # may not be used to endorse or promote products derived from this
9 # software without specific prior written permission. This software
10 # is provided ``as is'' without express or implied warranty.
12 # lthreads library makefile
14 #-----------------------------------------------------------------------------
18 SRCS = thread.c stack.c
19 OBJS = thread.o stack.o
24 DEFINES = $(DEFS) $(THREADS)
26 CFLAGS = $(INCLUDES) $(THREADSINCLUDE) $(DEFINES) $(ACFLAGS)
30 liblthread.a: version.o
31 $(AR) ruv $@ $(OBJS) version.o
32 @if [ ! -z "$(RANLIB)" ]; then \
36 $(LN) liblthread/$@ ../$@
40 (u=$${USER-root} v=`$(CAT) ../../build/version` d=`$(PWD)` \
41 h=`$(HOSTNAME)` t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
42 -e "s|%WHOANDWHERE%|$${u}@$${h}:$${d}|" \
43 -e "s|%VERSION%|$${v}|" \
49 $(LINT) $(INCLUDES) $(DEFINES) $(SRCS)
52 $(5LINT) $(INCLUDES) $(DEFINES) $(SRCS)
55 $(RM) liblthread.a ../liblthread.a *.o core a.out version.c
58 $(MKDEP) $(INCLUDES) $(DEFINES) $(SRCS)
63 # DO NOT DELETE THIS LINE -- mkdep uses it.
64 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
66 thread.o: thread.c ../../include/lthread.h
67 stack.o: stack.c ../../include/lber.h ../../include/ldap.h
69 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY