summaryrefslogtreecommitdiff
path: root/mit-pthreads/config/Makefile.in
blob: 3fa388d740bf89920e8e6eaf154e097695229d17 (plain)
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
#	@(#)Makefile	5.2 (Berkeley) 3/5/91
#

LIB=pthread
NOPIC=1
NOPROFILE=1
NOLINT=1
MKPIC=no
MKPROFILE=no
MKLINT=no
CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/include -I${srcdir}/include -DPTHREAD_KERNEL
CDEBUGFLAGS= @CFLAGS@
CFLAGS+= ${CDEBUGFLAGS}
# CFLAGS+= ${CPPFLAGS} <- done by bsd.lib.mk
CFLAGS+= ${CPPFLAGS} 
LIBDIR= $(exec_prefix)/lib
BINDIR= $(exec_prefix)/bin
INCDIR= $(exec_prefix)/include
MANDIR= $(exec_prefix)/man

.OBJDIR != if test -d ${.CURDIR}/obj ; then true ; else mkdir ${.CURDIR}/obj || exit 1 ; fi ; echo ${.CURDIR}/obj

# Standard bsd install rules look for the "install" program, rather than
# using some variable.  So, hack things so that that install rule works.
BINGRP != echo " " `groups` " " | sed 's/ [0-9][0-9]* / /g' | awk '{print $$1}'
BINOWN != echo $${USER}
LIBMODE = 644 # so ranlib can run!

.include "config.flags"

# %!$@ pmake seems to automagically cd into the obj directory, so relative 
# srcdir references are completely botched.  Try to figure out an absolute
# pathname for srcdir here, and live with it.
srcdir = $(srctop)

beforeinstall: install-dirs

.include "${srcdir}/pthreads/Makefile.inc"
.include "${srcdir}/stdlib/Makefile.inc"
.include "${srcdir}/stdio/Makefile.inc"
.include "${srcdir}/string/Makefile.inc"
.include "${srcdir}/gen/Makefile.inc"
.include "${srcdir}/net/Makefile.inc"
.include "${srcdir}/scripts/Makefile.inc"

$(OBJS) : $(config) $(types) $(paths)

Makefile: ${srcdir}/config/Makefile.in
	cd ${.CURDIR} && sh config.status

all-lib : libpthread.a
# Removed make install since mysql uses this in place.
#install : install-bin install-include
install:

.include <bsd.lib.mk>