1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-05 03:20:39 -08:00
emacs/mps/code/gp.gmk
Nick Barnes db4b3a6fa5 Remove trailing whitespace.
Copied from Perforce
 Change: 25309
 ServerID: perforce.ravenbrook.com
2001-12-17 15:18:17 +00:00

32 lines
942 B
Text

# impl.gmk.gp: GNUMAKEFILE FRAGMENT FOR GNU CC/GPROF
#
# $Id$
# Copyright (c) 2001 Ravenbrook Limited.
#
# This file is included by platform makefiles that use the GNU CC
# compiler with gprof. It defines the compiler specific variables
# that the common makefile fragment (impl.gmk.comm) requires.
CC = gcc
CFLAGSCOMPILER = \
-ansi -pedantic -Wall -Werror -Wpointer-arith \
-Wstrict-prototypes -Wmissing-prototypes \
-Winline -Waggregate-return -Wnested-externs \
-Wcast-qual -Wshadow -pg
CFLAGSDEBUG = -g -ggdb3
CFLAGSOPT = -O -g -ggdb3
CFLAGSOPTNODEBUG = -O -g0
# gcc -MM generates a dependency line of the form:
# thing.o : thing.c ...
# The sed line converts this into:
# <pfm>/<variety>/thing.o <pfm>/<variety>/thing.d : thing.c ...
# @@ This sequence is vulnerable to interrupts (for some reason)
define gendep
$(SHELL) -ec "gcc -c $(CFLAGS) -MM $< | \
sed '/:/s!$*.o!$(@D)/& $(@D)/$*.d!' > $@"
endef
include comm.gmk