# Makefile for GNU gprof (atariST tos-gcc version) # # Copyright (C) 1989, Free Software Foundation, Inc. # # This file is part of GNU CC. # # GNU CC is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 1, or (at your option) # any later version. # # GNU CC is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU CC; see the file COPYING. If not, write to # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. CROSSDIR = /net/acae127/home/bammi/atari/cross-gcc CROSSBIN = $(CROSSDIR)/bin CC = $(CROSSBIN)/cgcc CFLAGS = -O2 -DATARI=1 -I. -fomit-frame-pointer -DNDEBUG # Use the GNU getopt unless you have problems with it. GNU_GETOPT = getopt.o GNU_GETOPT_LONG = getopt.o getopt1.o PROGS = gprof.ttp TESTS = test1.tos test2.tos all: $(PROGS) $(TESTS) gprof.ttp: gprof.o cplusdem.o $(GNU_GETOPT_LONG) $(CC) -o gprof.ttp gprof.o cplusdem.o $(GNU_GETOPT_LONG) -s gprof.o: gprof.c gmon.h $(CC) -c $(CFLAGS) gprof.c $(OUTPUT_OPTION) test1.tos: test1.c $(CC) -G -O -o test1.tos test1.c -pg -mshort -v test2.tos: test2.c $(CC) -G -O -o test2.tos test2.c -pg -v clean: rm -f *.o core realclean: clean rm -f $(PROGS) $(TESTS)