Makefile 865 Bytes
Newer Older
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
# Generated by configure from .in at Sun Jan 23 19:29:20 CET 2005

#CC	= mpicc.darshan
CC	= mpicc
LD	= $(CC)

CFLAGS	= -O0 -g -Wall -Wl,-rpath,../../darshan-runtime/lib

CFLAGS	+= -I../../darshan-runtime/lib -I. -I../../darshan-runtime -I../../darshan-florin-extensions
#LDFLAGS	= -Wl,-wrap,MPI_Init 
LDFLAGS =  -L../../darshan-runtime/lib -ldarshan 

#-L/home/fisaila/software/darshan-florin-extensions/darshan-runtime/lib -ldarshan-posix #-rdynamic -L/home/fisaila/software/darshan-florin-extensions/darshan-runtime/lib -ldarshan


OBJS	= 
LIBS    =  

SRCS	= $(patsubst %.o,%.c,$(OBJS))

PRGS	=  writef 

all: $(PRGS)

%.o: %.c $(HEADERS)
	$(CC) $(CFLAGS) -c $*.c $(INCLUDE) -o $@

$(PRGS): $(OBJS) /homes/fisaila/software/darshan/lib/libdarshan.so
$(PRGS): 
$(PRGS): % : %.o
	$(CC) $(CFLAGS) -o $@ $< $(OBJS) $(LDFLAGS) $(LIBS)

clean:
	-rm -f *.o  *~ $(PRGS)