blob: b857df38ee1967277291320bf26eb7164880146c (
plain)
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
|
SH = sh
SHOBJS = sash.o cmds.o cmd_uclinux.o ls.o hexdump.o df.o free.o \
hostname.o date.o
SHUTDOWN = shutdown
SHUTDOWNOBJS = shutdown.o
REBOOT = reboot
REBOOTOBJS = reboot.o
SHOBJS += ps.o
LIBSASH = libsash/libsash.a
all: $(SH) $(SHUTDOWN) $(REBOOT)
$(SH): $(SHOBJS) $(LIBSASH)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(SHOBJS) $(LIBSASH) $(LDLIBS$(LDLIBS_$@))
$(SHUTDOWN): $(SHUTDOWNOBJS) $(LIBSASH)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(SHUTDOWNOBJS) $(LIBSASH) $(LDLIBS)
$(REBOOT): $(REBOOTOBJS) $(LIBSASH)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(REBOOTOBJS) $(LIBSASH) $(LDLIBS$(LDLIBS_$@))
dummy_target:
$(LIBSASH): dummy_target
$(MAKE) -C libsash
clean:
-rm -f $(SH) $(SHUTDOWN) $(REBOOT) *.elf *.gdb *.o
$(MAKE) -C libsash clean
|