aboutsummaryrefslogtreecommitdiffstats
path: root/mii/Makefile
blob: 9f062373e1292c5cb39e9e01aa2266d1c95752e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
OBJS=starfire-diag tulip-diag mii-diag
include ../include/rules.make
CC=gcc
#CFLAGS+=-momit-leaf-frame-pointer

all:	$(OBJS)

%-diag:	%-diag.o libmii.o
	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^
	strip -R .comment -R .note $@
	objdump -h $@ | grep -q '\.data[ ]*00000000' && strip -R .data $@ || true
	sstrip $@

%.o:	%.c
	$(CC) -DLIBMII $(CFLAGS) -c -o $@ $<