mirror of
https://github.com/nasa/trick.git
synced 2025-01-30 08:03:51 +00:00
49 lines
1.1 KiB
Makefile
49 lines
1.1 KiB
Makefile
|
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}/CivetServer.o \
|
||
|
${OBJDIR}/simpleJSON.o
|
||
|
|
||
|
#############################################################################
|
||
|
## MODEL TARGETS ##
|
||
|
#############################################################################
|
||
|
|
||
|
all: ${TRICK_LIB_DIR}/libtrickHTTP.a
|
||
|
|
||
|
$(TRICK_HTTP_OBJS): $(OBJDIR)/%.o : src/%.cpp | $(OBJDIR)
|
||
|
$(CPP) $(CPPFLAGS) ${TRICK_SYSTEM_CXXFLAGS} ${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}
|