-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (30 loc) · 974 Bytes
/
Makefile
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
CC = gcc
DEFS += -DDEBUG
CCFLAGS += -g $(DEFS)
INCS = -I. -I/usr/local/browndeer/coprthr2/include
LIBS = -L/usr/local/browndeer/coprthr2/lib -lcoprthr -lcoprthrcc -lm -ldl
COPRCC = /usr/local/browndeer/coprthr2/bin/coprcc
COPRCC_FLAGS = -g --info
COPRCC_DEFS = $(DEFS) -DCOPRTHR_MPI_COMPAT
COPRCC_INCS = $(INCS)
COPRCC_LIBS = -L/usr/local/browndeer/coprthr2/lib \
-lcoprthr_hostcall -lcoprthr_mpi -lcoprthr2_dev -lesyscall
TARGET = passing.x passing.e32
all: $(TARGET)
Debug: passing.x
CL: passing.e32
.PHONY: clean install uninstall $(SUBDIRS)
.SUFFIXES: .c .o .x .e32
passing.x: pass.o
$(CC) -o passing.x pass.o $(LIBS)
passing.e32: passCL.c passing.h ringTopo16.c
$(COPRCC) $(COPRCC_FLAGS) $(COPRCC_LIBS) $(COPRCC_INCS) $(COPRCC_DEFS) -o passing.e32 $<
pass.o: pass.c passing.h
$(CC) $(CCFLAGS) $(INCS) -c pass.c -o pass.o
cleanDebug: $(SUBDIRS)
rm -f *.o
rm -f passing.x
cleanCL: $(SUBDIRS)
rm -f *.e32
clean: cleanDebug cleanCL
distclean: clean