source: TOOLS/PACK_IPSL/Makefile @ 3863

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

Makefile crash si libccc_user non charge

File size: 464 bytes
RevLine 
[1867]1MODULE_LOADED := $(shell ./check_libccc_user.sh; echo $$?)
2ifeq ($(MODULE_LOADED),1)
3  $(error "Charger le module libccc_user")
4endif
[1849]5MPICC=mpicc
[1853]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
[1849]12
13.PHONY: all
[1853]14all : glost_launch
[1849]15
[1853]16%:%.c
17        $(MPICC) $(MPICC_OPTS) -o $@ $< $(LIBS)
[1867]18       
[1853]19clean:
20        $(RM) glost_launch
[1849]21
22
23
24
25
26
Note: See TracBrowser for help on using the repository browser.