2002-09-17 01:10:34 +08:00
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
bindir = $(exec_prefix)/bin
|
|
|
|
|
|
|
|
CC = @CC@
|
|
|
|
CXX = @CXX@
|
|
|
|
CPPFLAGS = @DEFS@
|
|
|
|
CFLAGS= @DEFS@ @CFLAGS@
|
|
|
|
CXXFLAGS = @CXXFLAGS@ $(CFLAGS)
|
|
|
|
LDFLAGS = @LDFLAGS@ -Wl,-E
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
BINDIR = @bindir@
|
|
|
|
ZMLIBS = -L/usr/lib/mysql -lmysqlclient @LIBS@
|
|
|
|
ZMOBJS = zm.o zmdbg.o jmemdst.o
|
|
|
|
ZMHDRS = zm.h zmcfg.h zmdbg.h
|
|
|
|
|
|
|
|
all: zmc zma zms zmu
|
|
|
|
|
2002-09-19 17:36:59 +08:00
|
|
|
test: all
|
2002-09-17 01:10:34 +08:00
|
|
|
@echo "No tests available"
|
|
|
|
|
2002-09-19 17:36:59 +08:00
|
|
|
install: all
|
2002-09-17 01:10:34 +08:00
|
|
|
$(INSTALL) $(ZMC) $(BINDIR)
|
|
|
|
$(INSTALL) $(ZMA) $(BINDIR)
|
|
|
|
$(INSTALL) $(ZMS) $(BINDIR)
|
|
|
|
$(INSTALL) $(ZMU) $(BINDIR)
|
|
|
|
@echo "You will now need to copy index.php to your desired ZoneMinder web document root"
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@$(RM) $(ZMC) $(ZMCOBJS) $(ZMA) $(ZMAOBJS) $(ZMS) $(ZMSOBJS) $(ZMU) $(ZMUOBJS)
|
|
|
|
|
|
|
|
distclean:
|
|
|
|
@$(RM) Makefile config.h config.status config.cache config.log
|
|
|
|
|
|
|
|
ZMC = zmc
|
|
|
|
ZMCOBJS = zmc.o $(ZMOBJS)
|
|
|
|
ZMCLIBS = $(ZMLIBS)
|
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