summaryrefslogtreecommitdiff
path: root/mit-pthreads/bin/finger/Makefile.in
blob: ee20f47443d1e1045283a2e5308563f6b92f3ff4 (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
# === 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@/bin/finger
VPATH = @srctop@/bin/finger
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@
    INCLUDES = -I@srctop@/lib/libpthreadutil/ -L../../lib/libpthreadutil/
      CFLAGS = $(CDEBUGFLAGS) $(INCLUDES) $(ADDL_CFLAGS) -DSRCDIR=\"$(srcdir)\"
      RANLIB = @RANLIB@

        OBJS = finger.o net.o
      BINARY = finger

################################################################################
#
all : $(BINARY)

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: $(BINARY)
	install $(BINARY) $(BINDIR)

realclean: clean
	rm -f Makefile

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

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

$(BINARY) : ${OBJS} 
	$(CC) $(CFLAGS) -o $(BINARY) ${OBJS} -lpthreadutil

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