Data products will not compile if TRICK_FORCE_32BIT is set.

The makefiles need to compile the units directory and they were
not at this time.  The units need to be compiled in the native
bit size regardless of whether we are forcing 32 bit or not.

refs #225
This commit is contained in:
Alex Lin 2016-04-18 09:59:52 -05:00
parent 56290d0306
commit f1a26615f1
2 changed files with 4 additions and 11 deletions

View File

@ -8,7 +8,8 @@ LIB_DIR = lib_${TRICK_HOST_CPU}
LIBDIRS = Var \
Log \
EQParse
EQParse \
units
ifneq ("$(wildcard fermi-ware)","")
LIBDIRS += fermi-ware

View File

@ -1,4 +1,6 @@
include ${TRICK_HOME}/makefiles/Makefile.common
CC = cc
CPP = c++
@ -38,18 +40,8 @@ $(LIBDIR):
OBJECTS: $(CPP_OBJECTS)
ifeq ($(TRICK_FORCE_32BIT), 1)
$(LIBDIR)/$(LIBNAME): $(CPP_OBJECTS) $(C_OBJECTS) $(LIB_DIR)
ar crs $(LIBDIR)/$(LIBNAME) $?
else
ifeq ($(TRICK_HOME),)
$(LIBDIR)/$(LIBNAME): $(CPP_OBJECTS) $(C_OBJECTS) $(LIB_DIR)
ar crs $(LIBDIR)/$(LIBNAME) $?
else
$(LIBDIR)/$(LIBNAME): $(LIBDIR)
ln -sf ${TRICK_HOME}/lib_${TRICK_HOST_CPU}/libtrick_units.a $(LIBDIR)/$(LIBNAME)
endif
endif
depend:
@ echo "No depend rule for this directory"