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

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [orp/] [orp_soc/] [sw.old/] [mad-xess/] [Makefile] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 782 lampret
CC = or32-rtems-gcc
2
AS = or32-rtems-as
3
AR = or32-rtems-ar
4
RUNLIB = or32-rtems-ranlib
5
 
6
SUBDIRS = libmad
7
 
8
MAD_OBJ =       reset.o         \
9
                minimad.o       \
10
                fsyst.o         \
11
                audio_oss.o     \
12
                audio.o         \
13
                memcpy.o        \
14
                memmove.o       \
15
                flash.o
16
 
17
 
18
CC_OPTS = -DHAVE_CONFIG_H -fno-delayed-branch -Wall -nostdlib \
19
        -I. -I./libmad/
20
 
21
#LD_OPTS = -T xess.ld -L/home/simons/or1k/lib/gcc-lib/or32-rtems/2.95.2/
22
LD_OPTS = -T xess.ld
23
 
24
all:
25
        @set fnord $(MAKEFLAGS); amf=$$2; \
26
        target=`echo $@ | sed s/-recursive//`; \
27
        list='$(SUBDIRS)'; for subdir in $$list; do \
28
          echo "Making $$target in $$subdir"; \
29
          (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target) \
30
           || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
31
        done; \
32
        $(MAKE) $(AM_MAKEFLAGS) "minimad" || exit 1; \
33
 
34
minimad: $(MAD_OBJ) libmad/libmad.a
35
        $(CC) $(LD_OPTS) -o minimad $(MAD_OBJ) libmad/libmad.a
36
 
37
reset.o: reset.S
38
        $(CC) $(CC_OPTS) -c -o reset.o reset.S
39
 
40
minimad.o: minimad.c config.h audio.h libmad/mad.h fsyst.h
41
        $(CC) $(CC_OPTS) -c -o minimad.o minimad.c
42
 
43
fsyst.o: fsyst.c config.h fsyst.h
44
        $(CC) $(CC_OPTS) -c -o fsyst.o fsyst.c
45
 
46
audio_oss.o: audio_oss.c config.h
47
        $(CC) $(CC_OPTS) -c -o audio_oss.o audio_oss.c
48
 
49
audio.o: audio.c config.h audio.h libmad/mad.h
50
        $(CC) $(CC_OPTS) -c -o audio.o audio.c
51
 
52
memcpy.o: memcpy.c config.h _ansi.h
53
        $(CC) $(CC_OPTS) -c -o memcpy.o memcpy.c
54
 
55
memmove.o: memmove.c config.h
56
        $(CC) $(CC_OPTS) -c -o memmove.o memmove.c
57
 
58
flash.o: flash.c config.h
59
        $(CC) $(CC_OPTS) -c -o flash.o flash.c
60
 
61
 
62
clean:
63
        @set fnord $(MAKEFLAGS); amf=$$2; \
64
        target=`echo $@ | sed s/-recursive//`; \
65
        list='$(SUBDIRS)'; for subdir in $$list; do \
66
          echo "Making $$target in $$subdir"; \
67
          (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target) \
68
           || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
69
        done; \
70
        rm -rf $(MAD_OBJ) minimad *~ *.bak
71
 

powered by: WebSVN 2.1.0

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