OSDN Git Service

Fix no pic
[uclinux-h8/uClinux-dist.git] / user / shutils / Makefile
1
2 EXECS = basename date dirname echo false logname printenv pwd true \
3         uname which whoami yes
4 OBJS = basename.o date.o dirname.o echo.o false.o logname.o printenv.o \
5         pwd.o true.o uname.o which.o whoami.o yes.o
6
7 all: $(EXECS)
8
9 $(EXECS): $(OBJS)
10         $(CC) $(LDFLAGS) -o $@ $@.o $(LDLIBS)
11
12 romfs:
13         $(ROMFSINST) -e CONFIG_USER_SHUTILS_BASENAME /bin/basename
14         $(ROMFSINST) -e CONFIG_USER_SHUTILS_DATE     /bin/date
15         $(ROMFSINST) -e CONFIG_USER_SHUTILS_DIRNAME  /bin/dirname
16         $(ROMFSINST) -e CONFIG_USER_SHUTILS_ECHO     /bin/echo
17         $(ROMFSINST) -e CONFIG_USER_SHUTILS_FALSE    /bin/false
18         $(ROMFSINST) -e CONFIG_USER_SHUTILS_LOGNAME  /bin/logname
19         $(ROMFSINST) -e CONFIG_USER_SHUTILS_PRINTENV /bin/printenv
20         $(ROMFSINST) -e CONFIG_USER_SHUTILS_PWD      /bin/pwd
21         $(ROMFSINST) -e CONFIG_USER_SHUTILS_TRUE     /bin/true
22         $(ROMFSINST) -e CONFIG_USER_SHUTILS_UNAME    /bin/uname
23         $(ROMFSINST) -e CONFIG_USER_SHUTILS_WHICH    /bin/which
24         $(ROMFSINST) -e CONFIG_USER_SHUTILS_WHOAMI   /bin/whoami
25         $(ROMFSINST) -e CONFIG_USER_SHUTILS_YES      /bin/yes
26
27 clean:
28         rm -f $(EXECS) *.gdb *.elf *.o