mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
dca9292c15
- let make test trigger showflags metze (This used to be commit 43c1d775b900b305345afe394383b78e83e4e5cb)
61 lines
1.0 KiB
Makefile
61 lines
1.0 KiB
Makefile
#!gmake
|
|
#
|
|
CC = @CC@
|
|
prefix = @prefix@
|
|
exec_prefix = @exec_prefix@
|
|
bindir = @bindir@
|
|
includedir = @includedir@
|
|
libdir = @libdir@
|
|
VPATH = @libreplacedir@
|
|
srcdir = @srcdir@
|
|
builddir = @builddir@
|
|
INSTALL = @INSTALL@
|
|
|
|
.PHONY: test
|
|
|
|
CFLAGS=-I. -I@libreplacedir@ @CFLAGS@
|
|
|
|
OBJS = @LIBREPLACEOBJ@
|
|
|
|
all: showflags libreplace.a testsuite
|
|
|
|
showflags:
|
|
@echo 'libreplace will be compiled with flags:'
|
|
@echo ' CC = $(CC)'
|
|
@echo ' CFLAGS = $(CFLAGS)'
|
|
@echo ' LIBS = $(LIBS)'
|
|
|
|
install: all
|
|
mkdir -p $(libdir)
|
|
$(INSTALL) libreplace.a $(libdir)
|
|
|
|
libreplace.a: $(OBJS)
|
|
ar -rcsv $@ $(OBJS)
|
|
|
|
test: all
|
|
./testsuite
|
|
|
|
installcheck: install test
|
|
|
|
TEST_OBJS = test/testsuite.o test/os2_delete.o
|
|
|
|
testsuite: libreplace.a $(TEST_OBJS)
|
|
$(CC) -o testsuite $(TEST_OBJS) -L. -lreplace
|
|
|
|
.c.o:
|
|
@echo Compiling $*.c
|
|
@mkdir -p `dirname $@`
|
|
@$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
clean:
|
|
rm -f *.o test/*.o *.a testsuite
|
|
rm -f testfile.dat
|
|
|
|
distclean: clean
|
|
rm -f *~ */*~
|
|
rm -f config.log config.status config.h
|
|
rm -f Makefile
|
|
|
|
realdistclean: distclean
|
|
rm -f configure config.h.in
|