mirror of
https://github.com/nasa/trick.git
synced 2024-12-20 05:37:55 +00:00
Removing makefiles
This commit is contained in:
parent
4d85ddb47a
commit
4f0ced3351
34
.gitignore
vendored
34
.gitignore
vendored
@ -1,34 +0,0 @@
|
||||
config.status*
|
||||
config.log
|
||||
share/trick/makefiles/config_user.mk
|
||||
object_*
|
||||
io_src
|
||||
swig
|
||||
lib
|
||||
lib64
|
||||
lib_Linux_*
|
||||
lib_Darwin_*
|
||||
*.lex.c
|
||||
*.tab.c
|
||||
*.tab.h
|
||||
*.swp
|
||||
*.dox
|
||||
*.pyc
|
||||
Makefile_jsc_dirs
|
||||
.DS_Store
|
||||
bin/trick-ICG
|
||||
bin/trick-fxplot
|
||||
bin/trick-gxplot
|
||||
bin/trick-trk2ascii
|
||||
bin/trick-trk2csv
|
||||
bin/trick-trkConvert
|
||||
aclocal.m4
|
||||
autom4te.cache
|
||||
trick_test
|
||||
gmon.out
|
||||
*init_log.csv*
|
||||
include/mongoose/
|
||||
trick_source/web/HttpServer/mongoose.c
|
||||
trick_source/web/HttpServer/mongoose.h
|
||||
trick_source/web/HttpServer/obj/
|
||||
|
@ -1,78 +0,0 @@
|
||||
TRICK_HOME := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))../../..)
|
||||
# The config_${HOST_TYPE}.mk file provides LLVM_HOME
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.common
|
||||
|
||||
CXXFLAGS := -g -I$(shell $(LLVM_HOME)/bin/llvm-config --includedir) -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fno-rtti $(UDUNITS_INCLUDES) -std=c++11
|
||||
|
||||
CLANG_MAJOR := $(shell $(LLVM_HOME)/bin/llvm-config --version | cut -f1 -d.)
|
||||
CLANG_MINOR := $(shell $(LLVM_HOME)/bin/llvm-config --version | cut -f2 -d.)
|
||||
CLANG_PATCHLEVEL := $(shell $(LLVM_HOME)/bin/llvm-config --version | cut -f3 -d.)
|
||||
# check to see if version is greater than 3.5
|
||||
CLANG_MINOR_GTEQ5 := $(shell [ $(CLANG_MAJOR) -gt 3 -o \( $(CLANG_MAJOR) -eq 3 -a $(CLANG_MINOR) -ge 5 \) ] && echo 1)
|
||||
|
||||
LLVMLDFLAGS := $(shell $(LLVM_HOME)/bin/llvm-config --ldflags) $(UDUNITS_LDFLAGS)
|
||||
|
||||
OBJ_DIR := object_$(TRICK_HOST_CPU)
|
||||
|
||||
ICG := ${TRICK_HOME}/bin/trick-ICG
|
||||
|
||||
SOURCES = $(wildcard *.cpp)
|
||||
OBJECTS = $(addprefix $(OBJ_DIR)/, $(subst .cpp,.o,$(SOURCES)))
|
||||
|
||||
UDUNITS_OBJS = \
|
||||
$(OBJ_DIR)/map_trick_units_to_udunits.o
|
||||
|
||||
CLANGLIBS = \
|
||||
-lclangFrontend \
|
||||
-lclangDriver \
|
||||
-lclangSerialization \
|
||||
-lclangParse \
|
||||
-lclangSema \
|
||||
-lclangAnalysis \
|
||||
-lclangEdit \
|
||||
-lclangAST \
|
||||
-lclangLex \
|
||||
-lclangBasic \
|
||||
|
||||
CXXFLAGS += -DLIBCLANG_MAJOR=$(CLANG_MAJOR) -DLIBCLANG_MINOR=$(CLANG_MINOR)
|
||||
ifneq ($(CLANG_PATCHLEVEL),)
|
||||
CXXFLAGS += -DLIBCLANG_PATCHLEVEL=$(CLANG_PATCHLEVEL)
|
||||
endif
|
||||
|
||||
ifeq ($(TRICK_HOST_TYPE),Linux)
|
||||
CLANGLIBS += $(shell $(LLVM_HOME)/bin/llvm-config --libs)
|
||||
ifeq ($(CLANG_MINOR_GTEQ5),1)
|
||||
# Fedora 21 adds -ledit as a system lib, but it isn't installed, or required.
|
||||
CLANGLIBS += $(filter-out -ledit,$(shell $(LLVM_HOME)/bin/llvm-config --system-libs))
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(TRICK_HOST_TYPE),Darwin)
|
||||
CLANGLIBS += $(shell $(LLVM_HOME)/bin/llvm-config --libs)
|
||||
CLANGLIBS += $(shell $(LLVM_HOME)/bin/llvm-config --system-libs)
|
||||
CLANGLIBS += -lc++abi
|
||||
endif
|
||||
|
||||
all: $(ICG)
|
||||
|
||||
$(ICG): $(OBJECTS) $(UDUNITS_OBJS)
|
||||
$(CXX) -o $@ $(OBJECTS) $(UDUNITS_OBJS) $(CLANGLIBS) $(LLVMLDFLAGS)
|
||||
|
||||
# Only FieldDescription.cpp includes the units conversion header.
|
||||
$(OBJ_DIR)/FieldDescription.o : CXXFLAGS += -I$(TRICK_HOME)/include
|
||||
$(OBJ_DIR)/HeaderSearchDirs.o : CXXFLAGS += -DLLVM_HOME=\"${LLVM_HOME}\"
|
||||
$(OBJ_DIR)/main.o : CXXFLAGS += $(UNITS_CONV_INCLUDE) -DTRICK_VERSION=\"${TRICK_VERSION}\"
|
||||
|
||||
$(OBJECTS): $(OBJ_DIR)/%.o : %.cpp
|
||||
$(CXX) $(CXXFLAGS) -c $< -o $@
|
||||
|
||||
$(UDUNITS_OBJS): $(OBJ_DIR)/%.o : ${TRICK_HOME}/trick_source/sim_services/UdUnits/%.cpp
|
||||
$(CXX) -c $< -o $@
|
||||
|
||||
$(OBJECTS) $(UDUNITS_OBJS) : | $(OBJ_DIR)
|
||||
|
||||
$(OBJ_DIR):
|
||||
mkdir -p $(OBJ_DIR)
|
||||
|
||||
clean:
|
||||
rm -rf $(OBJ_DIR) $(ICG)
|
@ -1 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../common.mk
|
@ -1 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../common.mk
|
@ -1 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../common.mk
|
@ -1 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../common.mk
|
@ -1 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../common.mk
|
@ -1 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../common.mk
|
@ -1 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../common.mk
|
@ -1 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../common.mk
|
@ -1 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../common.mk
|
@ -1 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../common.mk
|
@ -1 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../common.mk
|
@ -1 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../common.mk
|
@ -1 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../common.mk
|
@ -1 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../common.mk
|
@ -1 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../common.mk
|
@ -1 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../common.mk
|
@ -1 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../common.mk
|
@ -1 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../common.mk
|
@ -1 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../common.mk
|
@ -1,69 +0,0 @@
|
||||
TRICK_HOME := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))../..)
|
||||
|
||||
# Get JAVAC definition
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.common
|
||||
|
||||
JAVAC ?= javac
|
||||
JAVAC_FLAGS = -g -Xlint:unchecked -Xlint:deprecation
|
||||
# delineate 'javac -version' for version number
|
||||
JAVAC_VERSION := $(shell ${JAVAC} -version 2>&1 | perl -ne 'print /(\d+)/')
|
||||
|
||||
SRC_DIR = src
|
||||
SRC_FILES = $(shell find ${SRC_DIR} -type f -name \*.java)
|
||||
BUILD_DIR = build
|
||||
DEST_DIR = ${BUILD_DIR}/classes
|
||||
LIB_DIR = ${TRICK_HOME}/$(LIBEXEC)/trick/java/lib
|
||||
DIST_DIR = ${TRICK_HOME}/$(LIBEXEC)/trick/java/dist
|
||||
RESOURCES_DIR = ${TRICK_HOME}/$(LIBEXEC)/trick/java/resources
|
||||
DOCS_API_DIR = ${TRICK_HOME}/share/doc/trick/java
|
||||
TEST_REPORTS_DIR = test/reports
|
||||
|
||||
empty :=
|
||||
space := $(empty) $(empty)
|
||||
CLASS_PATH = $(subst $(space),:,$(wildcard ${LIB_DIR}/*.jar))
|
||||
|
||||
RESOURCES = $(subst src/,,$(shell find src/trick -name resources))
|
||||
RESOURCES += $(subst src/,,$(shell find src/trick -name jaxb.index))
|
||||
|
||||
all: ${DIST_DIR}/trick.jar resources
|
||||
@echo "[32mJava build successful[0m"
|
||||
|
||||
${DEST_DIR} ${DIST_DIR} ${RESOURCES_DIR} ${DOCS_API_DIR}:
|
||||
mkdir -p $@
|
||||
|
||||
${DIST_DIR}/trick.jar: compile ${DIST_DIR}
|
||||
@echo "[36mCreating jar file...[0m"
|
||||
@jar cf ${DIST_DIR}/trick.jar -C ${DEST_DIR} .
|
||||
@cd ${SRC_DIR} && jar uf ${DIST_DIR}/trick.jar ${RESOURCES}
|
||||
|
||||
external_jars:
|
||||
@ $(MAKE) -C $(LIB_DIR)
|
||||
|
||||
compile: ${DEST_DIR} external_jars
|
||||
@echo "[36mBuilding Trick GUIs...[0m"
|
||||
@${JAVAC} ${JAVAC_FLAGS} -classpath ${CLASS_PATH} -d ${DEST_DIR} -sourcepath ${SRC_DIR} ${SRC_FILES}
|
||||
|
||||
resources: ${RESOURCES_DIR}/trick_icon.png
|
||||
|
||||
${RESOURCES_DIR}/trick_icon.png: ${SRC_DIR}/trick/common/resources/trick_icon.png ${RESOURCES_DIR}
|
||||
@cp $< $@
|
||||
|
||||
JAVA_DOC_LINKS = \
|
||||
-link "http://docs.oracle.com/javase/6/docs/api/" \
|
||||
-link "http://www.jfree.org/jfreechart/api/javadoc/" \
|
||||
-link "http://junit.sourceforge.net/javadoc/"
|
||||
|
||||
javadoc: ${DOCS_API_DIR}
|
||||
javadoc -d ${DOCS_API_DIR} -classpath ${CLASS_PATH} -sourcepath ${SRC_DIR} -windowtitle "Trick GUI API" ${JAVA_DOC_LINKS} trick ${SRC_FILES}
|
||||
|
||||
clean:
|
||||
rm -rf ${BUILD_DIR}
|
||||
rm -rf ${DIST_DIR}
|
||||
rm -rf ${RESOURCES_DIR}
|
||||
rm -rf ${TEST_REPORTS_DIR}
|
||||
|
||||
clean_obj:
|
||||
rm -rf ${BUILD_DIR}
|
||||
|
||||
clean_docs:
|
||||
rm -rf ${DOCS_API_DIR}
|
@ -1,14 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
||||
|
||||
# suppress warnings in lex and yacc files.
|
||||
$(L_OBJS) : TRICK_CXXFLAGS += -Wno-unused-parameter -Wno-unused-function -Wno-sign-compare -x c++
|
||||
$(Y_OBJS) : TRICK_CXXFLAGS += -Wno-unused-parameter -Wno-unused -x c++
|
||||
|
||||
ifeq ($(IS_CC_CLANG), 1)
|
||||
$(Y_OBJS) : TRICK_CXXFLAGS += -Wno-parentheses-equality
|
||||
endif
|
||||
|
||||
# suppress warnings files with shadowing.
|
||||
$(CPP_OBJS) : TRICK_CXXFLAGS += -Wno-shadow
|
@ -1,7 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
||||
|
||||
ifneq ($(DMTCP),)
|
||||
TRICK_CXXFLAGS += -D_DMTCP -I$(DMTCP)/dmtcpaware
|
||||
endif
|
@ -1,3 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
@ -1,7 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
||||
|
||||
ifneq ($(DMTCP),)
|
||||
TRICK_CXXFLAGS += -D_DMTCP -I$(DMTCP)/dmtcpaware
|
||||
endif
|
@ -1,3 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
@ -1,7 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
||||
|
||||
ifneq ($(DMTCP),)
|
||||
TRICK_CXXFLAGS += -D_DMTCP -I$(DMTCP)/dmtcpaware
|
||||
endif
|
@ -1,17 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
||||
|
||||
TRICK_CXXFLAGS += -std=c++11
|
||||
|
||||
ifneq ($(HDF5),)
|
||||
ifneq ($(HDF5),/usr)
|
||||
$(OBJ_DIR)/DRHDF5.o: TRICK_CXXFLAGS += -I$(HDF5)/include
|
||||
$(OBJ_DIR)/io_DRHDF5.o: TRICK_CXXFLAGS += -I$(HDF5)/include
|
||||
endif
|
||||
TRICK_CXXFLAGS += -DHDF5
|
||||
endif
|
||||
|
||||
ifneq ($(DMTCP),)
|
||||
TRICK_CXXFLAGS += -D_DMTCP -I$(DMTCP)/dmtcpaware
|
||||
endif
|
@ -1,62 +0,0 @@
|
||||
|
||||
RM = rm -rf
|
||||
CC = cc
|
||||
CPP = c++
|
||||
|
||||
|
||||
CFLAGS = -g -Wall
|
||||
INCLUDE_DIRS = -Iinclude
|
||||
OBJDIR = obj
|
||||
LIBDIR = lib
|
||||
LIBNAME = libDecl.a
|
||||
LIBOBJS = \
|
||||
${OBJDIR}/CompositeValue.o \
|
||||
${OBJDIR}/IntegerValue.o \
|
||||
${OBJDIR}/FloatingPointValue.o \
|
||||
${OBJDIR}/PointerValue.o \
|
||||
${OBJDIR}/StringValue.o \
|
||||
${OBJDIR}/StructMember.o \
|
||||
${OBJDIR}/NormalStructMember.o \
|
||||
${OBJDIR}/StaticStructMember.o \
|
||||
${OBJDIR}/BitfieldStructMember.o \
|
||||
${OBJDIR}/Enumerator.o \
|
||||
${OBJDIR}/TypeDictionary.o \
|
||||
${OBJDIR}/EnumDictionary.o \
|
||||
${OBJDIR}/DataType.o \
|
||||
${OBJDIR}/CompositeDataType.o \
|
||||
${OBJDIR}/EnumDataType.o \
|
||||
${OBJDIR}/ArrayDataType.o \
|
||||
${OBJDIR}/PointerDataType.o \
|
||||
${OBJDIR}/PrimitiveDataType.o \
|
||||
${OBJDIR}/LexicalAnalyzer.o \
|
||||
${OBJDIR}/ParsedDeclaration.o \
|
||||
${OBJDIR}/AllocInfo.o \
|
||||
${OBJDIR}/MemMgr.o \
|
||||
${OBJDIR}/ClassicChkPtAgent.o
|
||||
|
||||
#############################################################################
|
||||
## MODEL TARGETS ##
|
||||
#############################################################################
|
||||
|
||||
all: ${LIBDIR}/${LIBNAME}
|
||||
|
||||
$(LIBOBJS): $(OBJDIR)/%.o : src/%.cpp | $(OBJDIR)
|
||||
$(CPP) $(CFLAGS) ${INCLUDE_DIRS} -c $< -o $@
|
||||
|
||||
${LIBDIR}/${LIBNAME}: ${LIBOBJS} | ${LIBDIR}
|
||||
ar crs $@ ${LIBOBJS}
|
||||
|
||||
${OBJDIR}:
|
||||
mkdir -p ${OBJDIR}
|
||||
|
||||
${LIBDIR}:
|
||||
mkdir -p ${LIBDIR}
|
||||
|
||||
clean:
|
||||
${RM} *~
|
||||
${RM} ${OBJDIR}
|
||||
|
||||
spotless: clean
|
||||
${RM} ${LIBDIR}/${LIBNAME}
|
||||
|
||||
|
@ -1,3 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
@ -1,3 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
@ -1,4 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
|
||||
-include Makefile_deps
|
@ -1,11 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
|
||||
TRICK_CFLAGS += $(PYTHON_INCLUDES)
|
||||
TRICK_CXXFLAGS += $(PYTHON_INCLUDES)
|
||||
|
||||
ifeq ($(PYTHON_VERSION),2.4)
|
||||
TRICK_CXXFLAGS += -DPYTHON_PROTECT_HANG
|
||||
endif
|
||||
|
||||
-include Makefile_deps
|
@ -1,3 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
@ -1,7 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
||||
|
||||
ifneq ($(DMTCP),)
|
||||
TRICK_CXXFLAGS += -D_DMTCP -I$(DMTCP)/dmtcpaware
|
||||
endif
|
@ -1,3 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
@ -1,10 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
|
||||
# override the trick lib file for this directory.
|
||||
TRICK_LIB := $(TRICK_LIB_DIR)/libtrick_pyip.a
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
|
||||
TRICK_CFLAGS += $(PYTHON_INCLUDES)
|
||||
TRICK_CXXFLAGS += $(PYTHON_INCLUDES)
|
||||
|
||||
-include Makefile_deps
|
@ -1,3 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
@ -1,6 +0,0 @@
|
||||
|
||||
all:
|
||||
${MAKE} -C ..
|
||||
|
||||
clean:
|
||||
${MAKE} -C .. clean
|
@ -1,3 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
@ -1,3 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
@ -1,7 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
||||
|
||||
ifneq ($(DMTCP),)
|
||||
TRICK_CXXFLAGS += -D_DMTCP -I$(DMTCP)/dmtcpaware
|
||||
endif
|
@ -1,29 +0,0 @@
|
||||
# set CONFIG_MK to allow compilation without running configure
|
||||
CONFIG_MK = 1
|
||||
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
# set the TRICK_LIB variable to create a separate library for the Memory Manager.
|
||||
TRICK_LIB := $(TRICK_LIB_DIR)/libtrick_mm.a
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
||||
|
||||
# make the Memory Manager library when called by the master makefile.
|
||||
trick: ${TRICK_LIB}
|
||||
|
||||
#include ${TRICK_HOME}/share/trick/makefiles/Makefile.common
|
||||
#include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
#-include Makefile_deps
|
||||
#
|
||||
#$(L_OBJS) : TRICK_CXXFLAGS += -Wno-unused-parameter -Wno-unused-function -Wno-sign-compare -x c++
|
||||
#$(Y_OBJS) : TRICK_CXXFLAGS += -Wno-unused-parameter -Wno-unused -x c++
|
||||
#
|
||||
#ifeq ($(IS_CC_CLANG), 1)
|
||||
#$(Y_OBJS) : TRICK_CXXFLAGS += -Wno-parentheses-equality
|
||||
#endif
|
||||
#
|
||||
## suppress warnings files with shadowing.
|
||||
#$(CPP_OBJS) : TRICK_CXXFLAGS += -Wno-shadow
|
||||
#
|
||||
|
||||
docs: MM.doxygen
|
||||
doxygen MM.doxygen
|
@ -1,3 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
@ -1,13 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
|
||||
-include Makefile_deps
|
||||
|
||||
TRICK_CXXFLAGS += -std=c++11
|
||||
|
||||
ifeq ($(HAVE_GSL),1)
|
||||
TRICK_CXXFLAGS += -D_HAVE_GSL
|
||||
ifneq ($(GSL_HOME),/usr)
|
||||
TRICK_CXXFLAGS += -I${GSL_HOME}/include
|
||||
endif
|
||||
endif
|
@ -1,3 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
@ -1,3 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
@ -1,3 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
@ -1,3 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
@ -1,5 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
||||
|
||||
TRICK_CXXFLAGS += -std=c++11
|
@ -1,3 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
@ -1,3 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
@ -1,3 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
@ -1,3 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
@ -1,3 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
@ -1,3 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
@ -1,3 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
@ -1,4 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
||||
TRICK_CXXFLAGS += -std=c++11
|
@ -1,3 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
@ -1,3 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
@ -1,30 +0,0 @@
|
||||
include $(dir $(lastword $(MAKEFILE_LIST)))../../../share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
||||
|
||||
#all: $(TRICK_LIB_DIR)/master.o
|
||||
#
|
||||
#trick: $(TRICK_LIB_DIR)/master.o
|
||||
#
|
||||
#$(OBJ_DIR)/master.o : master.cpp | $(OBJ_DIR)
|
||||
# $(TRICK_CXX) $(TRICK_CXXFLAGS) -c $< -o $@
|
||||
#
|
||||
#$(TRICK_LIB_DIR)/master.o : $(OBJ_DIR)/master.o | $(TRICK_LIB_DIR)
|
||||
# $(CP) $< $@
|
||||
#
|
||||
#$(OBJ_DIR):
|
||||
# mkdir -p $(OBJ_DIR)
|
||||
#
|
||||
#clean:
|
||||
# $(RM) -rf $(OBJ_DIR)
|
||||
#
|
||||
#real_clean: clean
|
||||
#
|
||||
#depend:
|
||||
# @ $(TRICK_CXX) -MM $(TRICK_CXXFLAGS) master.cpp >> $(DEPTEMPFILE)
|
||||
# @ $(PERL) ${TRICK_HOME}/bin/depend_cp $(DEPTEMPFILE) > $(DEPFILE)
|
||||
# @ $(RM) $(DEPTEMPFILE)
|
||||
# @ echo "Created dependency file $(DEPFILE)"
|
||||
#
|
||||
#
|
||||
#-include Makefile_deps
|
@ -1,99 +0,0 @@
|
||||
TRICK_HOME := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))../..)
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.common
|
||||
|
||||
ifneq ($(HDF5),)
|
||||
TRICK_CXXFLAGS += -DHDF5
|
||||
endif
|
||||
|
||||
TRICK_LIB = $(TRICK_LIB_DIR)/libtrick_pyip.a
|
||||
|
||||
OBJECT_FILES = \
|
||||
$(OBJ_DIR)/PrimitiveAttributesMap.o \
|
||||
$(OBJ_DIR)/swig_convert_units.o \
|
||||
$(OBJ_DIR)/swig_global_vars.o
|
||||
|
||||
SWIG_OBJECT_FILES = \
|
||||
$(OBJ_DIR)/sim_services_wrap.o \
|
||||
$(OBJ_DIR)/swig_double_wrap.o \
|
||||
$(OBJ_DIR)/swig_int_wrap.o \
|
||||
$(OBJ_DIR)/swig_ref_wrap.o
|
||||
|
||||
PY_FILES = \
|
||||
${TRICK_HOME}/share/trick/swig/sim_services.py \
|
||||
${TRICK_HOME}/share/trick/swig/swig_double.py \
|
||||
${TRICK_HOME}/share/trick/swig/swig_int.py \
|
||||
${TRICK_HOME}/share/trick/swig/swig_ref.py
|
||||
|
||||
SWIG_SRC_FILES = $(addprefix swig_${TRICK_HOST_CPU}/, $(notdir $(subst .o,.cpp,$(SWIG_OBJECT_FILES))))
|
||||
TRICK_CXXFLAGS += $(PYTHON_INCLUDES) -Wno-redundant-decls -Wno-shadow -Wno-unused-parameter -Wno-missing-field-initializers
|
||||
|
||||
ifeq ($(IS_CC_CLANG), 1)
|
||||
TRICK_CXXFLAGS += -Wno-self-assign -Wno-sometimes-uninitialized
|
||||
endif
|
||||
|
||||
TEST_DIR = swig_${TRICK_HOST_CPU}_test
|
||||
|
||||
ifneq ($(HDF5),)
|
||||
SWIG_DEFS += -DHDF5
|
||||
ifneq ($(HDF5),/usr)
|
||||
TRICK_CXXFLAGS += -I$(HDF5)/include
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(GSL_HOME),)
|
||||
SWIG_DEFS += -D_HAVE_GSL
|
||||
endif
|
||||
|
||||
ifeq ($(USE_ER7_UTILS), 1)
|
||||
SWIG_DEFS += -DUSE_ER7_UTILS_INTEGRATORS
|
||||
endif
|
||||
|
||||
ifeq ($(USE_ER7_UTILS_CHECKPOINTHELPER), 1)
|
||||
SWIG_DEFS += -DUSE_ER7_UTILS_CHECKPOINTHELPER
|
||||
endif
|
||||
|
||||
default: $(SWIG_OBJECT_FILES) $(TRICK_LIB) $(TEST_DIR)
|
||||
|
||||
trick: $(SWIG_OBJECT_FILES) $(OBJECT_FILES) $(TEST_DIR)
|
||||
|
||||
$(OBJ_DIR):
|
||||
mkdir $@
|
||||
|
||||
$(TEST_DIR): swig_${TRICK_HOST_CPU}
|
||||
ln -s -f $< $@
|
||||
|
||||
$(SWIG_OBJECT_FILES): | $(OBJ_DIR)
|
||||
|
||||
$(SWIG_SRC_FILES): | swig_${TRICK_HOST_CPU}
|
||||
|
||||
swig_${TRICK_HOST_CPU}:
|
||||
mkdir $@
|
||||
|
||||
$(SWIG_OBJECT_FILES): $(OBJ_DIR)/%.o : swig_${TRICK_HOST_CPU}/%.cpp
|
||||
$(TRICK_CXX) $(TRICK_CXXFLAGS) $(TRICK_SYSTEM_CXXFLAGS) -c $< -o $@
|
||||
|
||||
$(OBJECT_FILES): $(OBJ_DIR)/%.o : %.cpp
|
||||
$(TRICK_CXX) $(TRICK_CXXFLAGS) $(TRICK_SYSTEM_CXXFLAGS) -c $< -o $@
|
||||
|
||||
$(SWIG_SRC_FILES): swig_${TRICK_HOST_CPU}/%_wrap.cpp : %.i
|
||||
$(SWIG) $(SWIG_DEFS) -I${TRICK_HOME}/trick_source -I${TRICK_HOME}/include -I${TRICK_HOME} -c++ -python -includeall -ignoremissing -w201,362,389,451 -o $@ -outdir ${TRICK_HOME}/share/trick/swig $<
|
||||
|
||||
$(TRICK_LIB) : $(SWIG_OBJECT_FILES) $(OBJECT_FILES)
|
||||
ar crs $@ $?
|
||||
|
||||
real_clean: clean
|
||||
|
||||
clean: clean_python
|
||||
$(RM) -rf $(OBJ_DIR) $(TEST_DIR) $(PY_FILES)
|
||||
|
||||
|
||||
clean_python:
|
||||
rm -rf swig_${TRICK_HOST_CPU} sim_services.py swig_double.py swig_int.py swig_ref.py
|
||||
|
||||
real_clean: clean
|
||||
|
||||
# some depends
|
||||
swig_int_wrap.cpp: swig_int.cpp
|
||||
swig_double_wrap.cpp: swig_double.cpp
|
||||
swig_ref_wrap.cpp: swig_ref.cpp
|
||||
|
@ -1,13 +0,0 @@
|
||||
TRICK_HOME := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))../../..)
|
||||
|
||||
# set CONFIG_MK to allow compilation without running configure
|
||||
CONFIG_MK = 1
|
||||
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.common
|
||||
# set the TRICK_LIB variable to create a separate library for comm
|
||||
TRICK_LIB := $(TRICK_LIB_DIR)/libtrick_comm.a
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
||||
|
||||
# make the comm library when called by the master makefile.
|
||||
trick: ${TRICK_LIB}
|
@ -1,5 +0,0 @@
|
||||
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
||||
|
@ -1,12 +0,0 @@
|
||||
# set CONFIG_MK to allow compilation without running configure
|
||||
CONFIG_MK = 1
|
||||
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.common
|
||||
# set the TRICK_LIB variable to create a separate library for comm
|
||||
TRICK_LIB := $(TRICK_LIB_DIR)/libtrick_math.a
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
||||
|
||||
# make the comm library when called by the master makefile.
|
||||
trick: ${TRICK_LIB}
|
||||
|
@ -1,5 +0,0 @@
|
||||
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
||||
|
@ -1,5 +0,0 @@
|
||||
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
||||
|
@ -1,5 +0,0 @@
|
||||
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.common
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
||||
|
@ -1,11 +0,0 @@
|
||||
# set CONFIG_MK to allow compilation without running configure
|
||||
CONFIG_MK = 1
|
||||
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.common
|
||||
# set the TRICK_LIB variable to create a separate library
|
||||
TRICK_LIB := $(TRICK_LIB_DIR)/libtrick_units.a
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.tricklib
|
||||
-include Makefile_deps
|
||||
|
||||
# make the library when called by the master makefile.
|
||||
trick: ${TRICK_LIB}
|
@ -1,48 +0,0 @@
|
||||
include ${TRICK_HOME}/share/trick/makefiles/Makefile.common
|
||||
|
||||
RM = rm -rf
|
||||
CC = cc
|
||||
CPP = c++
|
||||
CURL = curl
|
||||
MV = mv
|
||||
CP = cp
|
||||
MKDIR = mkdir
|
||||
|
||||
CFLAGS = -g -Wall
|
||||
CPPFLAGS = -g -Wall -std=c++11
|
||||
|
||||
INCLUDE_DIRS = -Iinclude -I${TRICK_HOME}/include
|
||||
|
||||
OBJDIR = obj
|
||||
LIBDIR = lib
|
||||
INCDIR = include
|
||||
|
||||
#TRICK_LIB_DIR comes from Makefile.common
|
||||
|
||||
TRICK_HTTP_OBJS = \
|
||||
${OBJDIR}/VariableServerSession.o \
|
||||
${OBJDIR}/VariableServerVariable.o \
|
||||
${OBJDIR}/http_GET_handlers.o \
|
||||
${OBJDIR}/WebServer.o \
|
||||
${OBJDIR}/simpleJSON.o
|
||||
|
||||
#############################################################################
|
||||
## MODEL TARGETS ##
|
||||
#############################################################################
|
||||
|
||||
all: ${TRICK_LIB_DIR}/libtrickHTTP.a
|
||||
|
||||
$(TRICK_HTTP_OBJS): $(OBJDIR)/%.o : src/%.cpp | $(OBJDIR)
|
||||
$(CPP) $(CPPFLAGS) ${INCLUDE_DIRS} -c $< -o $@
|
||||
|
||||
${TRICK_LIB_DIR}/libtrickHTTP.a: ${TRICK_HTTP_OBJS}
|
||||
ar crs $@ ${TRICK_HTTP_OBJS}
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
${OBJDIR}:
|
||||
mkdir -p ${OBJDIR}
|
||||
|
||||
clean:
|
||||
${RM} *~
|
||||
${RM} ${OBJDIR}
|
Loading…
Reference in New Issue
Block a user