OSSP CVS Repository

ossp - ossp-pkg/act/Makefile.in 1.7
Not logged in
[Honeypot]  [Browse]  [Directory]  [Home]  [Login
[Reports]  [Search]  [Ticket]  [Timeline
  [Raw

ossp-pkg/act/Makefile.in 1.7
##
##  OSSP act - Abstract Container Types
##  Copyright (c) 1999-2003 Ralf S. Engelschall <rse@engelschall.com>
##  Copyright (c) 1999-2003 The OSSP Project <http://www.ossp.org/>
##
##  This file is part of OSSP act, an abstract container type library
##  which can be found at http://www.ossp.org/pkg/lib/act/.
##
##  Permission to use, copy, modify, and distribute this software for
##  any purpose with or without fee is hereby granted, provided that
##  the above copyright notice and this permission notice appear in all
##  copies.
##
##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
##  SUCH DAMAGE.
##
##  Makefile.in: make(1) build procedure
##

CC      = @CC@
CFLAGS  = @CFLAGS@
LDFLAGS = @LDFLAGS@
AR      = @AR@
RANLIB  = @RANLIB@
RM      = rm -f
SHTOOL  = ./shtool
SED     = sed

PRE     = act_p.h
LIB     = libact.a
SRC     = act_mem.c act_ctx.c act_str.c act_grid.c act_lib.c act_hash.c act_hash_fct.c act_hash_oh.c act_hash_lh.c
OBJ     = act_mem.o act_ctx.o act_str.o act_grid.o act_lib.o act_hash.o act_hash_fct.o act_hash_oh.o act_hash_lh.o
TST     = act_test

all: $(PRE) $(LIB) $(TST)

.c.o:
	$(CC) $(CFLAGS) -c $<

$(PRE): $(PRE).in
	$(SHTOOL) scpp -o $(PRE) -t $(PRE).in -Dcpp -Cintern -M '==#==' $(SRC)

$(LIB): $(OBJ)
	$(AR) rc $(LIB) $(OBJ)
	$(RANLIB) $(LIB)

$(TST): $(TST).o $(LIB)
	$(CC) $(LDFLAGS) -o $(TST) $(TST).o $(LIB)

test-hash-fct:
	$(CC) -DACT_TEST -oact_hash_fct act_hash_fct.c -lm
	./act_hash_fct

clean:
	$(RM) $(PRE)
	$(RM) $(LIB)
	$(RM) $(OBJ)
	$(RM) $(TST).o $(TST)
	$(RM) core *.core *.aux *.log
	$(RM) act_hash_fct

distclean:
	@$(MAKE) $(MFLAGS) clean
	$(RM) config.log config.cache config.status
	$(RM) act_cfg.h act_p.h act.h
	$(RM) Makefile

check: test
test:
	time ./act_test


CVSTrac 2.0.1