mirror of https://github.com/apache/activemq.git
121 lines
2.6 KiB
INI
121 lines
2.6 KiB
INI
CURRENT = $(PWD)
|
|
|
|
# --- select compiler for structure
|
|
# ----------------------------------------------------------
|
|
|
|
include $(MAKE_HOME)/makefile-$(OSTYPE)-$(CONFIG).cfg
|
|
|
|
# --- set generic commmands
|
|
# ----------------------------------------------------------
|
|
|
|
MV = mv
|
|
RM = rm -f
|
|
RMR = rm -rf
|
|
CP = cp -p
|
|
LN = ln -s
|
|
LS = ls
|
|
CAT = cat
|
|
MD = mkdir
|
|
AR = ar -r
|
|
PURIFY = purify
|
|
ECHO = echo
|
|
TOUCH = touch
|
|
CD = cd
|
|
STRIP = strip
|
|
|
|
# --- set default targets and their handling procedures
|
|
# ----------------------------------------------------------
|
|
|
|
.SILENT:
|
|
.KEEP_STATE:
|
|
|
|
.SUFFIXES:
|
|
.SUFFIXES: .cpp .CC
|
|
|
|
.INIT:
|
|
$(ECHO) " -<>- Compiling "$(CURRENT)
|
|
|
|
.DONE:
|
|
$(ECHO) " -<>- Done"
|
|
|
|
.FAILED:
|
|
$(ECHO) " *** Compilation of $(CURRENT) Failed"
|
|
|
|
$(OUTDIR)/%.o: $(SRCDIR)/%.cpp $(SRCDIR)/%.hpp
|
|
$(ECHO) " - "$(CC) "'"$<"'"
|
|
$(CC) -o $@ $(DEFINES) $(CCFLAGS) -I$(SRCDIR) \
|
|
$(LOCAL_INCLUDE) -c $<
|
|
|
|
$(OUTDIR)/%.o: $(TSTDIR)/%.cpp $(TSTDIR)/%.hpp
|
|
$(ECHO) " - "$(CC) "'"$<"'"
|
|
$(CC) -o $@ $(DEFINES) $(CCFLAGS) -I$(SRCDIR) -I$(TSTDIR) \
|
|
$(LOCAL_INCLUDE) -c $<
|
|
|
|
# --- set generic targets and their handling procedures
|
|
# ----------------------------------------------------------
|
|
|
|
all: default
|
|
|
|
default: \
|
|
prepare \
|
|
$(OUTLIB) \
|
|
postpare
|
|
|
|
test: \
|
|
prepare \
|
|
$(OUTEXE) \
|
|
postpare
|
|
|
|
|
|
$(OUTLIB): $(LIBOFILES) $(DEPLIBS)
|
|
$(ECHO) " - Creating static library file "$@
|
|
$(AR) $(ARFLAGS) $@ $(LIBOFILES)
|
|
|
|
$(OUTEXE): $(OUTLIB) $(EXEOFILES)
|
|
$(ECHO) " - Creating test executable file "$(OUTEXE)
|
|
$(LD) $(LDFLAGS) -o $@ -L$(OUTDIR) $(EXEOFILES) $(EXELIBS)
|
|
|
|
clean:
|
|
$(ECHO) " - Cleaning up local directory "$(CURRENT)
|
|
$(ECHO) " - Removing object files"
|
|
$(RM) $(LIBOFILES)
|
|
$(RM) $(EXEOFILES)
|
|
$(ECHO) " - Removing file "$(OUTLIB)
|
|
$(RM) $(OUTLIB)
|
|
$(ECHO) " - Removing file "$(OUTEXE)
|
|
$(RM) $(OUTEXE)
|
|
$(RM) *~ *%
|
|
$(RM) #*
|
|
$(RM) core
|
|
$(RM) a.out
|
|
|
|
prepare:
|
|
if test ! -d $(OUTDIR) ; \
|
|
then \
|
|
$(MD) $(OUTDIR); \
|
|
$(MD) $(OUTDIR)/activemq; \
|
|
$(MD) $(OUTDIR)/activemq/command; \
|
|
$(MD) $(OUTDIR)/activemq/protocol; \
|
|
$(MD) $(OUTDIR)/activemq/protocol/openwire; \
|
|
$(MD) $(OUTDIR)/activemq/transport; \
|
|
$(MD) $(OUTDIR)/activemq/transport/tcp; \
|
|
$(MD) $(OUTDIR)/cms; \
|
|
$(MD) $(OUTDIR)/ppr; \
|
|
$(MD) $(OUTDIR)/ppr/io; \
|
|
$(MD) $(OUTDIR)/ppr/io/encoding; \
|
|
$(MD) $(OUTDIR)/ppr/net; \
|
|
$(MD) $(OUTDIR)/ppr/thread; \
|
|
$(MD) $(OUTDIR)/ppr/util; \
|
|
fi
|
|
|
|
postpare:
|
|
$(ECHO) "Done."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|