mirror of
https://github.com/MariaDB/server.git
synced 2025-08-30 11:22:14 +03:00
66 lines
1.6 KiB
Makefile
Executable File
66 lines
1.6 KiB
Makefile
Executable File
# === makefile ============================================================
|
|
# Copyright (c) 1993 Chris Provenzano, proven@athena.mit.edu
|
|
#
|
|
# Description: This file is for creating the test programs for libpthread.a
|
|
#
|
|
# 1.00 93/08/03 proven
|
|
# -Initial cut for pthreads.
|
|
#
|
|
|
|
srctop = @srctop@
|
|
srcdir = @srctop@/lib/libpthreadutil
|
|
VPATH = @srctop@/lib/libpthreadutil
|
|
prefix= @prefix@
|
|
exec_prefix= @exec_prefix@
|
|
|
|
INSTALL_PATH = @exec_prefix@
|
|
BINDIR = $(INSTALL_PATH)/bin
|
|
LIBDIR = $(INSTALL_PATH)/lib
|
|
MANDIR = $(INSTALL_PATH)/man
|
|
INCDIR = $(INSTALL_PATH)/include
|
|
|
|
CC = ../../pgcc -notinstalled
|
|
CDEBUGFLAGS = @CFLAGS@
|
|
CFLAGS = $(CDEBUGFLAGS) $(INCLUDES) $(ADDL_CFLAGS) -DSRCDIR=\"$(srcdir)\"
|
|
RANLIB = @RANLIB@
|
|
|
|
OBJS = pthread_tad.o pthread_atexit.o
|
|
LIBRARY = libpthreadutil.a
|
|
HEADERS = pthreadutil.h
|
|
|
|
################################################################################
|
|
#
|
|
all : $(LIBRARY)
|
|
|
|
clean:
|
|
rm -f *.o $(TESTS) $(BENCHMARKS) a.out core maketmp makeout
|
|
|
|
depend:
|
|
sed '/\#\#\# Dependencies/q' < Makefile > maketmp
|
|
(for i in $(CSRC);do $(CPP) -M $$i;done) >> maketmp
|
|
cp maketmp Makefile
|
|
|
|
install: $(LIBRARY)
|
|
install $(LIBRARY) $(LIBDIR)
|
|
for x in $(HEADERS); \
|
|
do cp $(srcdir)/$$x $(INCDIR); \
|
|
done
|
|
|
|
realclean: clean
|
|
rm -f Makefile
|
|
|
|
Makefile: Makefile.in
|
|
(cd ../.. ; sh config.status)
|
|
|
|
.c.o:
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
$(LIBRARY) : ${OBJS}
|
|
ar r new.a ${OBJS} && \
|
|
$(RANLIB) new.a && \
|
|
mv -f new.a $(LIBRARY)
|
|
|
|
################################################################################
|
|
### Do not remove the following line. It is for depend #########################
|
|
### Dependencies:
|