2000-02-18 03:38:33 +08:00
|
|
|
#
|
|
|
|
# mingw/profile/Makefile.in: This file is part of Mingw runtime.
|
|
|
|
#
|
|
|
|
# This makefile requires GNU make.
|
|
|
|
|
|
|
|
VPATH = @srcdir@
|
|
|
|
srcdir = @srcdir@
|
2009-07-28 04:27:09 +08:00
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
|
|
|
|
# FIXME: I see no reason to define `objdir';
|
|
|
|
# it appears to be unused, and could be removed.
|
2000-02-18 03:38:33 +08:00
|
|
|
objdir = .
|
|
|
|
|
|
|
|
target_alias = @target_alias@
|
|
|
|
prefix = @prefix@
|
|
|
|
|
2009-07-28 04:27:09 +08:00
|
|
|
datarootdir = @datarootdir@
|
2000-02-18 03:38:33 +08:00
|
|
|
program_transform_name = @program_transform_name@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
bindir = @bindir@
|
|
|
|
libdir = @libdir@
|
2009-07-28 04:27:09 +08:00
|
|
|
|
|
|
|
# FIXME: Use of `target_alias' is extremely suspect here;
|
|
|
|
# (see relevant note in top level Makefile).
|
2000-02-18 03:38:33 +08:00
|
|
|
tooldir = $(exec_prefix)/$(target_alias)
|
|
|
|
datadir = @datadir@
|
|
|
|
infodir = @infodir@
|
|
|
|
includedir = @includedir@
|
|
|
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
2001-06-05 04:45:30 +08:00
|
|
|
mkinstalldirs = $(SHELL) $(srcdir)/../mkinstalldirs
|
2006-11-21 17:30:15 +08:00
|
|
|
DISTFILES = Makefile.in configure configure.in aclocal.m4 gcrt0.c gmon.c gmon.h \
|
|
|
|
mcount.c profil.c profil.h profile.h CYGWIN_LICENSE COPYING
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
CC = @CC@
|
|
|
|
# FIXME: Which is it, CC or CC_FOR_TARGET?
|
|
|
|
CC_FOR_TARGET = $(CC)
|
|
|
|
AS_FOR_TARGET = $(AS)
|
|
|
|
CFLAGS = @CFLAGS@
|
|
|
|
CXXFLAGS = @CXXFLAGS@
|
|
|
|
|
|
|
|
# compiling with Cygwin?
|
2008-10-13 07:58:17 +08:00
|
|
|
NO_CYGWIN := @NO_CYGWIN@
|
|
|
|
ifdef NO_CYGWIN
|
2009-07-28 04:27:09 +08:00
|
|
|
#
|
|
|
|
# FIXME: What is the purpose of this hideous kludge?
|
|
|
|
#
|
|
|
|
# `CC' should have been appropriately set by the configure script;
|
|
|
|
# to mess with it, in this fashion, should neither be necessary,
|
|
|
|
# nor accepted.
|
|
|
|
#
|
2008-10-13 07:58:17 +08:00
|
|
|
override CC := ${NO_CYGWIN} $(firstword $(filter-out ${NO_CYGWIN},${CC}))
|
|
|
|
endif
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
# Either crtdll (CRT_ID 1) or msvcrt (CRT_ID 2).
|
|
|
|
RUNTIME = @RUNTIME@
|
|
|
|
CRT_ID = @CRT_ID@
|
|
|
|
|
|
|
|
# Needed for threading dll.
|
|
|
|
THREAD_DLL = @THREAD_DLL@
|
|
|
|
THREAD_DLL_VERSION = 10
|
|
|
|
THREAD_DLL_NAME = $(THREAD_DLL)$(THREAD_DLL_VERSION).dll
|
|
|
|
|
2003-05-06 21:26:44 +08:00
|
|
|
W32API_INCLUDE = @W32API_INCLUDE@
|
2009-07-28 04:27:09 +08:00
|
|
|
INCLUDES = -I${srcdir} -I${top_srcdir}/include \
|
2004-07-13 21:01:28 +08:00
|
|
|
-nostdinc \
|
2002-06-13 18:20:48 +08:00
|
|
|
-iwithprefixbefore include
|
2008-10-13 07:58:17 +08:00
|
|
|
ALL_CFLAGS = $(CFLAGS) $(INCLUDES) $(W32API_INCLUDE)
|
|
|
|
ALL_CXXFLAGS = $(CXXFLAGS) $(INCLUDES) -nostdinc++ $(W32API_INCLUDE)
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
AS = @AS@
|
|
|
|
AR = @AR@
|
|
|
|
LD = @LD@
|
|
|
|
AR_FLAGS = rcv
|
|
|
|
RANLIB = @RANLIB@
|
|
|
|
DLLTOOL = @DLLTOOL@
|
|
|
|
DLLTOOLFLAGS =
|
|
|
|
DLLTOOL_FOR_TARGET = $(DLLTOOL)
|
|
|
|
DLLTOOL_FLAGS = --as $(AS_FOR_TARGET)
|
|
|
|
|
|
|
|
LIBGMON_A = @LIBGMON_A@
|
|
|
|
LIBGMON_OBJS = gmon.o mcount.o profil.o
|
2002-06-13 18:20:48 +08:00
|
|
|
CRT0S = @CRT0S@
|
|
|
|
ALL_CRT0S = gcrt0.o gcrt1.o gcrt2.o
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
LIBS = $(LIBGMON_A)
|
|
|
|
DLLS =
|
|
|
|
|
|
|
|
all: $(LIBGMON_A)
|
|
|
|
|
|
|
|
$(LIBGMON_A): $(LIBGMON_OBJS) $(CRT0S)
|
|
|
|
$(AR) $(ARFLAGS) $@ $(LIBGMON_OBJS)
|
|
|
|
$(RANLIB) $@
|
|
|
|
|
2002-06-13 18:20:48 +08:00
|
|
|
# FIXME: These are really the same, but gcc specs want different names.
|
|
|
|
# The only CRT dependency is atexit.
|
|
|
|
gcrt0.o: gcrt0.c
|
2003-05-06 21:26:44 +08:00
|
|
|
$(CC) -c -o $@ $(CPPFLAGS) $(ALL_CFLAGS) $?
|
2002-06-13 18:20:48 +08:00
|
|
|
|
2000-02-18 03:38:33 +08:00
|
|
|
gcrt1.o: gcrt0.c
|
2003-05-06 21:26:44 +08:00
|
|
|
$(CC) -U__MSVCRT__ -c -o $@ $(CPPFLAGS) $(ALL_CFLAGS) $?
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
gcrt2.o: gcrt0.c
|
2003-05-06 21:26:44 +08:00
|
|
|
$(CC) -D__MSVCRT__ -c -o $@ $(CPPFLAGS) $(ALL_CFLAGS) $?
|
2000-02-18 03:38:33 +08:00
|
|
|
|
2003-03-17 06:12:01 +08:00
|
|
|
#
|
2009-07-28 04:27:09 +08:00
|
|
|
# Dependencies
|
2003-03-17 06:12:01 +08:00
|
|
|
#
|
|
|
|
gmon.o: gmon.c gmon.h profile.h profil.h
|
|
|
|
mcount.o: mcount.c gmon.h profile.h
|
|
|
|
profil.o: profil.c profil.h
|
2003-02-14 08:42:35 +08:00
|
|
|
|
2009-07-28 04:27:09 +08:00
|
|
|
top_builddir = @top_builddir@
|
|
|
|
|
|
|
|
Makefile: Makefile.in ${top_builddir}/config.status ${top_srcdir}/configure
|
|
|
|
cd ${top_builddir}; $(SHELL) config.status
|
2000-02-18 03:38:33 +08:00
|
|
|
|
2009-07-28 04:27:09 +08:00
|
|
|
${top_builddir}/config.status: ${top_srcdir}/configure
|
|
|
|
cd ${top_builddir}; $(SHELL) config.status --recheck
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
info:
|
|
|
|
|
|
|
|
info-html:
|
|
|
|
|
|
|
|
install-info: info
|
|
|
|
|
2009-10-30 05:53:47 +08:00
|
|
|
need-DESTDIR-compatibility = prefix libdir includedir
|
|
|
|
.PHONY: $(need-DESTDIR-compatibility) fail-DESTDIR-compatibility
|
|
|
|
|
|
|
|
$(need-DESTDIR-compatibility):
|
|
|
|
@test -z "$(DESTDIR)" || case "$($@)" in ?:*) \
|
|
|
|
$(MAKE) --no-print-directory reject="$@" fail-DESTDIR-compatibility ;; \
|
|
|
|
esac
|
|
|
|
|
|
|
|
fail-DESTDIR-compatibility:
|
|
|
|
$(error DESTDIR is not supported when $(reject) contains Win32 path `$($(reject))'; \
|
|
|
|
try `make install $(reject)=$(shell echo '$($(reject))' | sed s,:,:$(DESTDIR),) ...' instead)
|
|
|
|
|
|
|
|
install: all $(need-DESTDIR-compatibility)
|
|
|
|
$(mkinstalldirs) $(DESTDIR)$(inst_libdir)
|
2000-02-18 03:38:33 +08:00
|
|
|
for i in $(LIBS); do \
|
2009-10-30 05:53:47 +08:00
|
|
|
$(INSTALL_DATA) $$i $(DESTDIR)$(inst_libdir)/$$i ; \
|
2000-02-18 03:38:33 +08:00
|
|
|
done
|
|
|
|
for i in $(CRT0S); do \
|
2009-10-30 05:53:47 +08:00
|
|
|
$(INSTALL_DATA) $$i $(DESTDIR)$(inst_libdir)/$$i ; \
|
2000-02-18 03:38:33 +08:00
|
|
|
done
|
|
|
|
for sub in . ; do \
|
2009-10-30 05:53:47 +08:00
|
|
|
$(mkinstalldirs) $(DESTDIR)$(inst_includedir)/$$sub ; \
|
2000-02-18 03:38:33 +08:00
|
|
|
for i in $(srcdir)/$$sub/*.h ; do \
|
2009-10-30 05:53:47 +08:00
|
|
|
$(INSTALL_DATA) $$i $(DESTDIR)$(inst_includedir)/$$sub/`basename $$i` ; \
|
2000-02-18 03:38:33 +08:00
|
|
|
done ; \
|
|
|
|
done
|
|
|
|
|
|
|
|
clean:
|
2002-06-13 18:20:48 +08:00
|
|
|
-rm -f $(LIBGMON_OBJS) $(ALL_CRT0S) $(LIBGMON_A)
|
2000-02-18 03:38:33 +08:00
|
|
|
|
|
|
|
distclean:
|
|
|
|
-rm -f *.o *.a *~ core a.out
|
|
|
|
-rm -f config.cache config.status config.log
|
|
|
|
-rm -f Makefile
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c $(ALL_CPPFLAGS) $(ALL_CFLAGS) $< -o $@
|
|
|
|
|
2000-11-22 09:51:53 +08:00
|
|
|
dist:
|
|
|
|
mkdir $(distdir)/profile
|
|
|
|
chmod 755 $(distdir)/profile
|
|
|
|
@for i in $(DISTFILES); do\
|
|
|
|
cp -p $(srcdir)/$$i $(distdir)/profile/$$i ; \
|
|
|
|
done
|
2003-03-17 06:12:01 +08:00
|
|
|
|
2009-07-28 04:27:09 +08:00
|
|
|
# $RCSfile$: end of file
|