fix the shell command in make.
authorGengbin Zheng <gzheng@illinois.edu>
Sat, 27 Oct 2012 21:38:26 +0000 (16:38 -0500)
committerGengbin Zheng <gzheng@illinois.edu>
Sat, 27 Oct 2012 21:38:26 +0000 (16:38 -0500)
src/libs/ck-libs/cache/Makefile

index 2fa993e1f316816d9e7508030c5e19c884650dc4..69d0b8b7b36172bf949db6d58a58d771c474648b 100644 (file)
@@ -7,6 +7,7 @@ HEADERS = $(CDIR)/include/CkCache.decl.h \
           $(CDIR)/include/CkCache.def.h \
           $(CDIR)/include/CkCache.h 
 LIBDEST =  $(LIBDIR)/$(LIB)
+CHARMXI_FLAGS = -E
 
 CIFILES = CkCache.ci
 
@@ -17,14 +18,14 @@ $(LIBDEST): $(LIBOBJ)
 
 CkCache.def.h CkCache.decl.h: INTERFACE
 
-BUILD_INT16=$(shell CHARMINC=../../../; if test -f ../../../conv-config.sh; then . ./conv-config.sh; echo $$CMK_HAS_INT16; fi )
+BUILD_INT16=$(shell CHARMINC=../../../; if test -f ../../../conv-config.sh; then . ../../../conv-config.sh; echo $$CMK_HAS_INT16; fi )
 
-ifneq "$(BUILD_INT16)" "0"
+ifeq "$(BUILD_INT16)" "1"
 CHARMXI_FLAGS += -DCMK_HAS_INT16=1
 endif
 
 INTERFACE: $(CIFILES)
-       $(CHARMC) -E $(CHARMXI_FLAGS) -c CkCache.ci
+       $(CHARMC) $(CHARMXI_FLAGS) -c CkCache.ci
        touch INTERFACE
 
 CkCache.o: CkCache.C $(HEADERS)