source: TOOLS/PACK_IPSL/Makefile @ 1867

Last change on this file since 1867 was 1867, checked in by gpincka, 11 years ago

Makefile crash si libccc_user non charge

File size: 464 bytes
Line 
1MODULE_LOADED := $(shell ./check_libccc_user.sh; echo $$?)
2ifeq ($(MODULE_LOADED),1)
3  $(error "Charger le module libccc_user")
4endif
5MPICC=mpicc
6MPICC_OPTS=-g
7# do not forget "module load libccc_user" before
8ifneq ($(CCC_LIBCCC_USER_LDFLAGS),)
9LIBS=$(CCC_LIBCCC_USER_LDFLAGS) 
10MPICC_OPTS+=-D __HAVE_LIBCCC_USER__ -I$(CCC_LIBCCC_USER_INC_DIR)
11endif
12
13.PHONY: all
14all : glost_launch
15
16%:%.c
17        $(MPICC) $(MPICC_OPTS) -o $@ $< $(LIBS)
18       
19clean:
20        $(RM) glost_launch
21
22
23
24
25
26
Note: See TracBrowser for help on using the repository browser.