GNUmakefile 677 Bytes
#!smake
# 
# Makefile for R4300 application profiler
#

PRDEPTH = ../..
include $(PRDEPTH)/PRdefs
CC=$(HOST_CC)
GCINCS=-D_LANGUAGE_C -I$(ROOT)/host_include
GLDOPTS=-L $(ROOT)/host_lib -L $(ROOT)/usr/lib


COMMANDS=gperf

CFILES=	gperf.c

#
# LFORMAT is defined in the versiondefs file.
#
SUPPORT_CFILES=	connect.c report.c
SUPPORT_OBJECTS=${SUPPORT_CFILES:.c=.o}

OPTIMIZER = -O
LLDLIBS+= -lsym -lelf -lultrahost
LCINCS+=-I$(ROOT)/usr/include/PR
LCOPTS+= -Wall
TARGETS= gperf

default: $(TARGETS)

include	$(COMMONRULES)

exports install: default
	$(INSTALL) -F /usr/sbin gperf

$(TARGETS): $(OBJECTS) ${SUPPORT_OBJECTS}
	$(CCF) $(OBJECTS) ${SUPPORT_OBJECTS} $(LDFLAGS) -o $@