2000-02-17 20:38:33 +01:00
|
|
|
#
|
|
|
|
# mingw/profile/Makefile.in: This file is part of Mingw runtime.
|
|
|
|
#
|
|
|
|
# This makefile requires GNU make.
|
|
|
|
|
|
|
|
VPATH = @srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
objdir = .
|
|
|
|
|
|
|
|
target_alias = @target_alias@
|
|
|
|
prefix = @prefix@
|
|
|
|
|
|
|
|
program_transform_name = @program_transform_name@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
bindir = @bindir@
|
|
|
|
libdir = @libdir@
|
|
|
|
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-04 22:45:30 +02:00
|
|
|
mkinstalldirs = $(SHELL) $(srcdir)/../mkinstalldirs
|
2000-11-22 02:51:53 +01:00
|
|
|
DISTFILES = Makefile.in configure configure.in gcrt0.c gmon.c gmon.h mcount.c \
|
|
|
|
profil.c profil.h profile.h
|
2000-02-17 20:38:33 +01: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?
|
|
|
|
MNO_CYGWIN = @MNO_CYGWIN@
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
INCLUDES = -I$(srcdir) -I$(srcdir)/../include \
|
|
|
|
-I$(srcdir)/../../w32api/include \
|
2002-06-13 12:20:48 +02:00
|
|
|
-nostdinc -nostdinc++ \
|
|
|
|
-iwithprefixbefore include
|
2000-02-17 20:38:33 +01:00
|
|
|
ALL_CFLAGS = $(CFLAGS) $(INCLUDES) $(MNO_CYGWIN)
|
|
|
|
ALL_CXXFLAGS = $(CXXFLAGS) $(INCLUDES) $(MNO_CYGWIN)
|
|
|
|
|
|
|
|
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 12:20:48 +02:00
|
|
|
CRT0S = @CRT0S@
|
|
|
|
ALL_CRT0S = gcrt0.o gcrt1.o gcrt2.o
|
2000-02-17 20:38:33 +01:00
|
|
|
|
|
|
|
LIBS = $(LIBGMON_A)
|
|
|
|
DLLS =
|
|
|
|
|
|
|
|
all: $(LIBGMON_A)
|
|
|
|
|
|
|
|
$(LIBGMON_A): $(LIBGMON_OBJS) $(CRT0S)
|
|
|
|
$(AR) $(ARFLAGS) $@ $(LIBGMON_OBJS)
|
|
|
|
$(RANLIB) $@
|
|
|
|
|
2002-06-13 12:20:48 +02:00
|
|
|
# FIXME: These are really the same, but gcc specs want different names.
|
|
|
|
# The only CRT dependency is atexit.
|
|
|
|
gcrt0.o: gcrt0.c
|
|
|
|
$(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $?
|
|
|
|
|
2000-02-17 20:38:33 +01:00
|
|
|
gcrt1.o: gcrt0.c
|
|
|
|
$(CC) -U__MSVCRT__ -c -o $@ $(CPPFLAGS) $(CFLAGS) $?
|
|
|
|
|
|
|
|
gcrt2.o: gcrt0.c
|
|
|
|
$(CC) -D__MSVCRT__ -c -o $@ $(CPPFLAGS) $(CFLAGS) $?
|
|
|
|
|
2003-03-16 23:12:01 +01:00
|
|
|
#
|
|
|
|
# Dependancies
|
|
|
|
#
|
|
|
|
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 01:42:35 +01:00
|
|
|
|
2000-02-17 20:38:33 +01:00
|
|
|
Makefile: Makefile.in config.status configure
|
|
|
|
$(SHELL) config.status
|
|
|
|
|
|
|
|
config.status: configure
|
|
|
|
$(SHELL) config.status --recheck
|
|
|
|
|
|
|
|
info:
|
|
|
|
|
|
|
|
info-html:
|
|
|
|
|
|
|
|
install-info: info
|
|
|
|
|
|
|
|
install: all
|
2002-06-13 12:20:48 +02:00
|
|
|
$(mkinstalldirs) $(inst_libdir)
|
2000-02-17 20:38:33 +01:00
|
|
|
for i in $(LIBS); do \
|
2002-06-13 12:20:48 +02:00
|
|
|
$(INSTALL_DATA) $$i $(inst_libdir)/$$i ; \
|
2000-02-17 20:38:33 +01:00
|
|
|
done
|
|
|
|
for i in $(CRT0S); do \
|
2002-06-13 12:20:48 +02:00
|
|
|
$(INSTALL_DATA) $$i $(inst_libdir)/$$i ; \
|
2000-02-17 20:38:33 +01:00
|
|
|
done
|
|
|
|
for sub in . ; do \
|
2002-06-13 12:20:48 +02:00
|
|
|
$(mkinstalldirs) $(inst_includedir)/$$sub ; \
|
2000-02-17 20:38:33 +01:00
|
|
|
for i in $(srcdir)/$$sub/*.h ; do \
|
2002-06-13 12:20:48 +02:00
|
|
|
$(INSTALL_DATA) $$i $(inst_includedir)/$$sub/`basename $$i` ; \
|
2000-02-17 20:38:33 +01:00
|
|
|
done ; \
|
|
|
|
done
|
|
|
|
|
|
|
|
clean:
|
2002-06-13 12:20:48 +02:00
|
|
|
-rm -f $(LIBGMON_OBJS) $(ALL_CRT0S) $(LIBGMON_A)
|
2000-02-17 20:38:33 +01: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 02:51:53 +01:00
|
|
|
dist:
|
|
|
|
mkdir $(distdir)/profile
|
|
|
|
chmod 755 $(distdir)/profile
|
|
|
|
@for i in $(DISTFILES); do\
|
|
|
|
cp -p $(srcdir)/$$i $(distdir)/profile/$$i ; \
|
|
|
|
done
|
2003-03-16 23:12:01 +01:00
|
|
|
|