summaryrefslogtreecommitdiff
path: root/mit-pthreads/bin/Makefile.in
blob: 979ad2db2ea1537e1dfbe9874d0799e718e4bc85 (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
# === GNUmakefile ============================================================
# Copyright (c) 1993 Chris Provenzano, proven@athena.mit.edu
#
#	Description: This file is for creating the test programs for libpthread.a
#
#	1.00 93/08/03 proven
#		-Initial cut for pthreads.
#

CC = ../pgcc -notinstalled
srctop = @srctop@
srcdir = @srctop@/lib
VPATH = @srctop@/lib
CDEBUGFLAGS = @CFLAGS@

CFLAGS = $(CDEBUGFLAGS) $(INCLUDES) $(ADDL_CFLAGS) -DSRCDIR=\"$(srcdir)\"

#
DIRS = finger

################################################################################
#
all:
	(for i in $(DIRS); do cd $$i; $(MAKE) all; cd ..; done)

clean: 
	(for i in $(DIRS); do cd $$i; $(MAKE) clean; cd ..; done)
	rm -f *.o $(TESTS) $(BENCHMARKS) a.out core maketmp makeout

depend:
	(for i in $(DIRS); do cd $$i; $(MAKE) depend; cd ..; done)
	sed '/\#\#\# Dependencies/q' < Makefile > maketmp
	(for i in $(CSRC);do $(CPP) -M $$i;done) >> maketmp
	cp maketmp Makefile

install:
	(for i in $(DIRS); do cd $$i; $(MAKE) install; cd ..; done)

realclean: clean
	(for i in $(DIRS); do cd $$i; $(MAKE) realclean; cd ..; done)
	rm -f Makefile

Makefile: Makefile.in
	(cd .. ; sh config.status)

################################################################################
### Do not remove the following line. It is for depend #########################
### Dependencies: