OSDN Git Service

2013.10.24
[uclinux-h8/uClinux-dist.git] / user / lsof / makefile
1 #
2 #       lsof has a crazy script based "Configure" setup. So I have
3 #       manually run it, and fixed up the cross compile issues in the
4 #       Makefiles. We also manually make and clean the linux file
5 #       links here.
6 #
7 FILES = dlsof.h dproto.h dfile.c dmnt.c dnode.c dproc.c dsock.c dstore.c
8 LINKFILES = $(addprefix lsof/,$(FILES))
9
10
11 all: $(LINKFILES)
12         $(MAKE) -C lsof
13
14 $(LINKFILES):
15         ln -s dialects/linux/$(notdir $@) $@
16
17 clean:
18         $(MAKE) -C lsof clean
19         rm -f $(LINKFILES)
20
21 romfs:
22         $(ROMFSINST) lsof/lsof /bin/lsof
23