minidlna support now Samsung TV C550/C650 (thx amir909)
[tomato.git] / release / src / router / utils / Makefile
blob19fef19c9c99fef4c09571c0f3f20df3d70d184a
2 # Miscellaneous utilities Makefile
4 # Copyright 2004, Broadcom Corporation
5 # All Rights Reserved.
6 #
7 # THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
8 # KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
9 # SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
10 # FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
12 # $Id$
15 include ../common.mak
17 UTILS := mii-tool robocfg ttcp
18 CFLAGS += -s -Os -I$(SRCBASE)/include -I$(LINUXDIR)/include -Wall $(EXTRACFLAGS)
19 ifneq ($(CONFIG_LINUX26),y)
20 CFLAGS += -U CONFIG_NVRAM_SIZE
21 endif
23 all: $(UTILS)
25 mii-tool: mii-tool.c mii.h
27 robocfg: robocfg.c etc53xx.h
29 ttcp: epi_ttcp.c
30 $(CC) $(CFLAGS) -o $@ $^
32 clean:
33 rm -f *.o *~ $(UTILS)
35 install: all
36 install -d $(INSTALLDIR)/usr/sbin
37 install $(UTILS) $(INSTALLDIR)/usr/sbin
38 $(STRIP) $(foreach file,$(UTILS),$(INSTALLDIR)/usr/sbin/$(file))