OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [userland/] [sash/] [Makefile] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
 
2 708 simons
CC = or32-uclibc-gcc
3
LD = or32-uclibc-gcc
4 710 simons
STRIP = or32-uclibc-strip
5 199 simons
 
6
CFLAGS += -DL_intflag -DL_modestring -DL_timestring -DL_isadir -DL_copyfile \
7
        -DL_buildname -DL_expandwildcards -DL_namesort -DL_match -DL_makeargs \
8
        -DL_makestring -DL_chunks -DL_expandenvvar
9
 
10
SH = sh
11
SHOBJS = sash.o cmds.o cmd_uclinux.o ls.o ps.o hexdump.o df.o free.o \
12 708 simons
        hostname.o date.o utils.o
13 199 simons
 
14
SHUTDOWN = shutdown
15
SHUTDOWNOBJS = shutdown.o
16
 
17
REBOOT = reboot
18
REBOOTOBJS = reboot.o
19
 
20
LIBSASH = libsash/libsash.a
21
 
22
all: $(SH)
23
 
24
$(SH): $(SHOBJS)
25 708 simons
        $(LD) $(LDFLAGS) -r -d -o $@ $(SHOBJS) $(LDLIBS)
26 199 simons
 
27 854 simons
 
28
#       $(STRIP) -g $@
29
 
30 199 simons
$(SHUTDOWN): $(SHUTDOWNOBJS) $(LIBSASH)
31 708 simons
        $(LD) $(LDFLAGS) -o $@ $(SHUTDOWNOBJS) $(LIBSASH) $(LDLIBS)
32 199 simons
 
33
$(REBOOT): $(REBOOTOBJS) $(LIBSASH)
34 708 simons
        $(LD) $(LDFLAGS) -o $@ $(REBOOTOBJS) $(LIBSASH) $(LDLIBS)
35 199 simons
 
36
dummy_target:
37
 
38
$(LIBSASH): dummy_target
39
        $(MAKE) -C libsash
40
 
41
clean:
42
        rm -f $(SH) $(SHUTDOWN) $(REBOOT) *.elf *.coff *.gdb *.o
43
        $(MAKE) -C libsash clean
44
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.