GNUmakefile
677 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!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 $@