aboutsummaryrefslogtreecommitdiff
path: root/src/Panda/makefile.proto
blob: 17805b3a098c9c226d8239fbd6e1e316533a6b2a (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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# makefile on 3-7-95 for C++ version of panda

# REMOVE # for the intended build (NOTE: # is a comment, unlike for C)
# include makefile.ibm.mpif
# include makefile.ibm.mpich  # this one is flakey, use mpif
# include makefile.sun.mpich
# include makefile.unix.posix

ARCHIVE	=	libeegads.a
OFILES	=	Array.o		Chunk.o		Simple_IO.o	Panda.o \
		ArrayLayout.o	List.o 		Collective_IO.o	\
		MPIFS.o 	Attribute.o 	ArrayDistribution.o \
		Template.o	VirtFS.o	App_Info.o	c_interface.o
CFILES	=	

all:		$(ARCHIVE)

$(ARCHIVE):	$(OFILES)
		$(AR) crv $(ARCHIVE) $(OFILES)

Array.o:		Array.C  Array.h Template.h List.h MPIFS.h ArrayLayout.h definitions.h
			$(CC) $(CFLAGS) -c Array.C 
ArrayGroup.o:		ArrayGroup.C  ArrayGroup.h ArrayGroup.h MPIFS.h definitions.h
			$(CC) $(CFLAGS) -c ArrayGroup.C 
List.o:			List.C  List.h  definitions.h
			$(CC) $(CFLAGS) -c List.C 
ArrayLayout.o:		ArrayLayout.C  ArrayLayout.h Template.h definitions.h
			$(CC) $(CFLAGS) -c ArrayLayout.C 
Template.o:		Template.C  Template.h definitions.h
			$(CC) $(CFLAGS) -c Template.C 
VirtFS.o:		VirtFS.C  VirtFS.h
			$(CC) -c $(CFLAGS) VirtFS.C 
MPIFS.o:		MPIFS.C  MPIFS.h VirtFS.h Array.h Collective_IO.h Simple_IO.h definitions.h App_Info.h message.h
			$(CC) -c $(CFLAGS) MPIFS.C 
Panda.o:		Panda.C  Panda.h VirtFS.h  MPIFS.h definitions.h
			$(CC) -c $(CFLAGS) Panda.C 
Chunk.o:		Chunk.C  Chunk.h ArrayLayout.h Array.h definitions.h
			$(CC) -c $(CFLAGS) Chunk.C 
Collective_IO.o:	Collective_IO.C  Collective_IO.h  definitions.h
			$(CC) -c $(CFLAGS) Collective_IO.C 
Simple_IO.o:		Simple_IO.C  Simple_IO.h  Collective_IO.h Array.h MPIFS.h  definitions.h message.h
			$(CC) -c $(CFLAGS) Simple_IO.C 
CSDIO.o:		CSDIO.C  CSDIO.h Simple_IO.h  Collective_IO.h Array.h MPIFS.h  definitions.h message.h
			$(CC) -c $(CFLAGS) CSDIO.C 
Shared_IO.o:		Shared_IO.C Shared_IO.h  Simple_IO.h  Collective_IO.h Array.h MPIFS.h  definitions.h message.h
			$(CC) -c $(CFLAGS) Shared_IO.C 
CSDIO_Shared.o:		CSDIO_Shared.C CSDIO_Shared.h  CSDIO.h Simple_IO.h  Collective_IO.h ArrayGroup.h  Array.h MPIFS.h  definitions.h message.h
			$(CC) -c $(CFLAGS) CSDIO_Shared.C 
App_Info.o:		App_Info.C App_Info.h definitions.h
			$(CC) -c $(CFLAGS) App_Info.C
c_interface.o:		c_interface.C c_interface.h 
			$(CC) -c $(CFLAGS) c_interface.C
Attribute.o:		Attribute.C Attribute.h
			$(CC) -c $(CFLAGS) Attribute.C
ArrayDistribution.o:	ArrayDistribution.C ArrayDistribution.h
			$(CC) -c $(CFLAGS) ArrayDistribution.C


## Hey, Kent, how should we verify a build is indeed correct?
## it seems that there is sort of a chicken and egg problem
## here:  we need a manually verified set of correct runs
## against which to test later builds and test runs...
## i set up the little bit below so that one can do a 
## `make test' to verify a corrrect build ...

oneexe:		oneexe.C $(ARCHIVE)
		$(CC) $(CFLAGS) oneexe.C -o oneexe -L. -leegads $(LIBS)

io_main:	io_main.C $(ARCHIVE)
		$(CC) $(CFLAGS) io_main.C -o io_main -L. -leegads $(LIBS)	 	

compute_test:	compute_test.C $(ARCHIVE)
		$(CC) $(CFLAGS) compute_test.C -o compute_test -L. -leegads $(LIBS)	 	

part_test:	part_test.C $(ARCHIVE)
		$(CC) $(CFLAGS) part_test.C -o part_test -L. -leegads $(LIBS)	 	

shared_test:	shared_test.C $(ARCHIVE)
		$(CC) $(CFLAGS) shared_test.C -o shared_test -L. -leegads $(LIBS)	 	

cleantests:	;
		- /bin/rm -f core 
		- /bin/rm -f $(TESTDIR) io_main  compute_test part_test shared_test oneexe
		sync

clean:		cleantests
		- /bin/rm -f $(OFILES) $(ARCHIVE) 
#		- /bin/rm -f *~ PI* os-detected a.out mpi_test core *.o 
#		- /bin/rm -f mputil.mp*.c makefile fileprefix mpirun.*
		- /bin/rm -f makefile fileprefix 
		sync

configure:	; @echo "already configured, or this makefile wouldn't be here"
		@echo "to reconfigure, make clean, then sh configure"