Last change
on this file since 4202 was
1867,
checked in by gpincka, 12 years ago
|
Makefile crash si libccc_user non charge
|
File size:
464 bytes
|
Rev | Line | |
---|
[1867] | 1 | MODULE_LOADED := $(shell ./check_libccc_user.sh; echo $$?) |
---|
| 2 | ifeq ($(MODULE_LOADED),1) |
---|
| 3 | $(error "Charger le module libccc_user") |
---|
| 4 | endif |
---|
[1849] | 5 | MPICC=mpicc |
---|
[1853] | 6 | MPICC_OPTS=-g |
---|
| 7 | # do not forget "module load libccc_user" before |
---|
| 8 | ifneq ($(CCC_LIBCCC_USER_LDFLAGS),) |
---|
| 9 | LIBS=$(CCC_LIBCCC_USER_LDFLAGS) |
---|
| 10 | MPICC_OPTS+=-D __HAVE_LIBCCC_USER__ -I$(CCC_LIBCCC_USER_INC_DIR) |
---|
| 11 | endif |
---|
[1849] | 12 | |
---|
| 13 | .PHONY: all |
---|
[1853] | 14 | all : glost_launch |
---|
[1849] | 15 | |
---|
[1853] | 16 | %:%.c |
---|
| 17 | $(MPICC) $(MPICC_OPTS) -o $@ $< $(LIBS) |
---|
[1867] | 18 | |
---|
[1853] | 19 | clean: |
---|
| 20 | $(RM) glost_launch |
---|
[1849] | 21 | |
---|
| 22 | |
---|
| 23 | |
---|
| 24 | |
---|
| 25 | |
---|
| 26 | |
---|
Note: See
TracBrowser
for help on using the repository browser.