1##
2##  GNU Pth - The GNU Portable Threads
3##  Copyright (c) 1999-2006 Ralf S. Engelschall <rse@engelschall.com>
4##
5##  This file is part of GNU Pth, a non-preemptive thread scheduling
6##  library which can be found at http://www.gnu.org/software/pth/.
7##
8##  This library is free software; you can redistribute it and/or
9##  modify it under the terms of the GNU Lesser General Public
10##  License as published by the Free Software Foundation; either
11##  version 2.1 of the License, or (at your option) any later version.
12##
13##  This library is distributed in the hope that it will be useful,
14##  but WITHOUT ANY WARRANTY; without even the implied warranty of
15##  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16##  Lesser General Public License for more details.
17##
18##  You should have received a copy of the GNU Lesser General Public
19##  License along with this library; if not, write to the Free Software
20##  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
21##  USA, or contact Ralf S. Engelschall <rse@engelschall.com>.
22##
23##  striptease.mk: Pth Makefile input for stripped down version
24##
25                              # ``The "micro" in "microkernel" was
26                              #   originally intended to mean 'small':
27                              #   Believe it or not.'' -- Ripley
28@SET_MAKE@
29
30CC          = @CC@
31CPPFLAGS    = @CPPFLAGS@ -I.
32CFLAGS      = @CFLAGS@
33LDFLAGS     = @LDFLAGS@ -L.
34LIBS        = @LIBS@
35AR          = @AR@
36RANLIB      = @RANLIB@
37SHTOOL      = ./shtool
38RM          = rm -f
39
40LIBS        = libpth.a @LIBPTHREAD_A@
41OBJS        = pth.o pth_vers.o @PTHREAD_O@
42SRCS        = pth.c pth_vers.c
43
44all: pth_p.h $(LIBS)
45
46.SUFFIXES:
47.SUFFIXES: .c .o .lo
48.c.o:
49	$(CC) -c $(CPPFLAGS) $(CFLAGS) $<
50
51pth_p.h: pth_p.h.in
52	$(SHTOOL) scpp -o pth_p.h -t pth_p.h.in -Dcpp -Cintern -M '==#==' $(SRCS)
53
54libpth.a: pth.o pth_vers.o
55	$(AR) rc libpth.a pth.o pth_vers.o
56	$(RANLIB) libpth.a
57
58libpthread.a: pth.o pth_vers.o pthread.o
59	$(AR) rc libpthread.a pth.o pth_vers.o pthread.o
60	$(RANLIB) libpthread.a
61
62clean:
63	$(RM) $(LIBS)
64	$(RM) $(OBJS)
65
66distclean: clean
67	$(RM) config.cache config.log config.status
68	$(RM) pth_p.h pth.h pthread.h pth_acdef.h pth_acmac.h
69	$(RM) Makefile
70
71test:
72check:
73install:
74
75