Added rules in the makefile to include er7_utils and fermi-ware if they exist. If they don't exist then the code that depends on them will not be compiled.

Also added the java GUIs to the default build rule.

Finally I added a lot of .gitignore files to ignore generated files.

Fixes #5
This commit is contained in:
Alex Lin 2015-03-03 16:06:02 -06:00
parent 2c46d603ba
commit 2fab93da66
13 changed files with 40 additions and 24 deletions

2
.gitignore vendored
View File

@ -2,9 +2,11 @@ config.status.*
config_*.mk
object_*
io_src
swig
lib_Linux_*
lib_Darwin_*
*.lex.c
*.tab.c
*.tab.h
*.swp
Makefile_jsc_dirs

View File

@ -154,7 +154,7 @@ ICG_EXE := ${TRICK_HOME}/trick_source/codegen/Interface_Code_Gen/ICG_$(shell una
################################################################################
# DEFAULT TARGET
# 1 Build Trick-core and Trick Data-products.
all: no_dp dp
all: no_dp dp java
@ echo ; echo "Trick compilation complete:" ; date
#-------------------------------------------------------------------------------
@ -187,13 +187,13 @@ $(ER7_UTILS_DIRS): TRICK_CXXFLAGS += -Wno-unused-parameter
$(ER7_UTILS_DIRS): make_er7_makefiles icg_sim_serv
@ $(MAKE) -C $@ trick
ifeq ($(USE_ER7_UTILS_INTEGRATORS), 1)
.PHONY: make_er7_makefiles
make_er7_makefiles:
@for i in $(ER7_UTILS_DIRS) ; do \
$(CP) ${TRICK_HOME}/trick_source/sim_services/Executive/Makefile $$i; \
done
ifeq ($(USE_ER7_UTILS_INTEGRATORS), 1)
icg_sim_serv: | make_er7_makefiles
endif
@ -282,7 +282,7 @@ sim_test:
################################################################################
clean: clean_sim_serv clean_utils clean_swig clean_dp clean_ICG
clean: clean_sim_serv clean_utils clean_swig clean_dp clean_ICG clean_java
@/bin/rm -rf $(TRICK_BIN_DIR)
@/bin/rm -rf $(TRICK_LIB_DIR)
@ -515,3 +515,5 @@ ICG: $(ICG_EXE)
trick_lib:
${TRICK_CPPC} $(SHARED_LIB_OPT) -o $(TRICK_LIB) $(SIM_SERV_OBJS) $(ER7_UTILS_OBJS) $(UTILS_OBJS) $(SWIG_OBJS)
# For NASA/JSC developers include optional rules
-include Makefile_jsc_dirs

2
bin/java/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
dist
resources

2
bin/java/lib/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*.jar

14
configure vendored
View File

@ -30,8 +30,6 @@ gtest=""
motif=""
hdf5=""
dmtcp=""
er7_utils=""
fermi_ware=""
dmtcp_min_ver=1.2.4
tprocte=""
bc635=""
@ -258,14 +256,6 @@ do
prev=dmtcp ;;
--dmtcp=*)
dmtcp=$optarg ;;
--er7-utils)
prev=er7_utils ;;
--er7-utils=*)
er7_utils=$optarg ;;
--fermi-ware)
prev=fermi_ware ;;
--fermi-ware=*)
fermi_ware=$optarg ;;
--flex | --lex)
prev=flex ;;
--flex=* | --lex=*)
@ -685,7 +675,7 @@ fi
# If this TRICK_HOME is from our repository.
if [ -e "$TRICK_HOME/.git" -o $dev == 1 ] ; then
echo "Trick subversion repository detected. Additional developer configuration continuing"
echo "Trick development repository detected. Additional developer configuration continuing"
# go ahead and set dev to 1.
dev=1
@ -836,8 +826,6 @@ GTEST_HOME = $gtest
LIBXML = $libxml
MOTIF_HOME = $motif
FERMI_WARE_HOME = $fermi_ware
ER7_UTILS_HOME = $er7_utils
# experimental, default to 0
HAVE_ZEROCONF = 0

View File

@ -81,10 +81,11 @@ TRICK_CXXFLAGS += -DHAVE_ZEROCONF
endif
export USE_ER7_UTILS_INTEGRATORS := 0
ifneq ("$(wildcard $(ER7_UTILS_HOME))","") # if the er7_utils directory exists
ifneq ("$(wildcard $(TRICK_HOME)/trick_source/er7_utils)","") # if the er7_utils directory exists
ER7_UTILS_HOME := $(TRICK_HOME)/trick_source/er7_utils
USE_ER7_UTILS_INTEGRATORS := 1
TRICK_CFLAGS += -DUSE_ER7_UTILS_INTEGRATORS -I${ER7_UTILS_HOME}/..
TRICK_CXXFLAGS += -DUSE_ER7_UTILS_INTEGRATORS -I${ER7_UTILS_HOME}/..
TRICK_CFLAGS += -DUSE_ER7_UTILS_INTEGRATORS
TRICK_CXXFLAGS += -DUSE_ER7_UTILS_INTEGRATORS
endif
endif #TRICK_MAKE_COMMON

15
trick_sims/.gitignore vendored
View File

@ -7,3 +7,18 @@ varserver_log
log_*
chkpnt_*
MONTE_RUN_*
.S_library*
.icg_no_found
CP_out
MAKE_out
Makefile_sim
Makefile_swig
S_default.dat
S_document.xml
S_library_list
S_main_*
S_sie.resource
S_source.cpp
S_source.hh
trick

1
trick_source/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
er7_utils

1
trick_source/data_products/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
fermi-ware

View File

@ -11,7 +11,7 @@ DPX_DIR = ../..
CFLAGS = -g -Wall
INCDIRS = -I${DPX_DIR} -I../../.. -I/usr/include/libxml2 -I$(MOTIF_HOME)/include -I$(FERMI_WARE_HOME)
INCDIRS = -I${DPX_DIR} -I../../.. -I/usr/include/libxml2 -I$(MOTIF_HOME)/include -I$(TRICK_HOME)/trick_source/data_products/fermi-ware
OBJDIR = object_${TRICK_HOST_CPU}
LIBDIR = ${DPX_DIR}/lib_${TRICK_HOST_CPU}
@ -38,7 +38,7 @@ endif
DP_LIBS = -L../../../lib_${TRICK_HOST_CPU} -llog -lvar -leqparse -L${TRICK_HOME}/lib_${TRICK_HOST_CPU} -ltrick_units
DPX_LIBS = -L${DPX_DIR}/lib_${TRICK_HOST_CPU} -lDPC -lDPM
FERMI_WARE_LIB = $(FERMI_WARE_HOME)/object_${TRICK_HOST_CPU}/libfermi.a
FERMI_WARE_LIB = $(TRICK_HOME)/trick_source/data_products/fermi-ware/object_${TRICK_HOST_CPU}/libfermi.a
ALL_LIBS = $(DPX_LIBS) $(FERMI_WARE_LIB) ${DP_LIBS} ${TRICK_UNIT_LIBS} $(LIBXML) ${HDF5_LIBRARY} -ldl $(FERMI_WARE_DIR)

View File

@ -14,7 +14,7 @@ LIBDIRS = DPM \
APPDIRS = APPS/GXPLOT
ifneq ($(FERMI_WARE_HOME),)
ifneq ("$(wildcard ${TRICK_HOME}/trick_source/data_products/fermi-ware)","")
APPDIRS += APPS/FXPLOT
endif

View File

@ -14,8 +14,8 @@ LIBDIRS = Var \
Log \
EQParse
ifneq ($(FERMI_WARE_HOME),)
LIBDIRS += $(FERMI_WARE_HOME)
ifneq ("$(wildcard fermi-ware)","")
LIBDIRS += fermi-ware
endif
APPDIRS = DPX \

2
trick_source/java/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
build