summaryrefslogtreecommitdiff
path: root/mit-pthreads/lib/libpthreadutil/Makefile.in
blob: 94034f426b3408a87e6256c71ca21f626ffc3b69 (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
57
58
59
60
61
62
63
64
65
# === makefile ============================================================
# 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.
#

srctop = @srctop@
srcdir = @srctop@/lib/libpthreadutil
VPATH = @srctop@/lib/libpthreadutil
prefix= @prefix@
exec_prefix= @exec_prefix@

INSTALL_PATH = @exec_prefix@
      BINDIR = $(INSTALL_PATH)/bin
      LIBDIR = $(INSTALL_PATH)/lib
      MANDIR = $(INSTALL_PATH)/man
      INCDIR = $(INSTALL_PATH)/include

          CC = ../../pgcc -notinstalled
 CDEBUGFLAGS = @CFLAGS@
      CFLAGS = $(CDEBUGFLAGS) $(INCLUDES) $(ADDL_CFLAGS) -DSRCDIR=\"$(srcdir)\"
      RANLIB = @RANLIB@

        OBJS = pthread_tad.o pthread_atexit.o
     LIBRARY = libpthreadutil.a
     HEADERS = pthreadutil.h

################################################################################
#
all : $(LIBRARY)

clean: 
	rm -f *.o $(TESTS) $(BENCHMARKS) a.out core maketmp makeout

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

install: $(LIBRARY)
	install $(LIBRARY) $(LIBDIR)
	for x in $(HEADERS); \
	do cp $(srcdir)/$$x $(INCDIR); \
	done

realclean: clean
	rm -f Makefile

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

.c.o:
	$(CC) $(CFLAGS) -c $< 

$(LIBRARY) : ${OBJS}
	ar r new.a ${OBJS} && \
	$(RANLIB) new.a && \
	mv -f new.a $(LIBRARY)

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