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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [stdalone/] [dactest/] [Makefile] - Blame information for rev 253

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 232 hellwig
#
2
# Makefile for "dactest", a program for testing the audio DAC
3
#
4
 
5
BUILD = ../../build
6
 
7
SRC1 = dactest.s
8
OBJ1 = dactest.o
9
SRC2 = bell.s
10
OBJ2 = bell.o
11
BIN = dactest.bin
12
MAP = dactest.map
13
EXO = dactest.exo
14
 
15
.PHONY:         all install run clean
16
 
17
all:            $(BIN) $(EXO)
18
 
19
install:        $(BIN) $(EXO)
20
                mkdir -p $(BUILD)/stdalone
21
                cp $(BIN) $(BUILD)/stdalone
22
                cp $(MAP) $(BUILD)/stdalone
23
                cp $(EXO) $(BUILD)/stdalone
24
 
25
run:            $(BIN)
26 245 hellwig
                $(BUILD)/bin/sim -i -s 1 -t 0 -l $(BIN) -a 0x10000
27 232 hellwig
 
28
$(EXO):         $(BIN)
29
                $(BUILD)/bin/bin2exo -S2 0x10000 $(BIN) $(EXO)
30
 
31
$(BIN):         $(OBJ1) $(OBJ2)
32
                $(BUILD)/bin/ld -h -rc 0xC0010000 \
33
                  -m $(MAP) -o $(BIN) $(OBJ1) $(OBJ2)
34
 
35
$(OBJ1):        $(SRC1)
36
                $(BUILD)/bin/as -o $(OBJ1) $(SRC1)
37
 
38
$(OBJ2):        $(SRC2)
39
                $(BUILD)/bin/as -o $(OBJ2) $(SRC2)
40
 
41
$(SRC2):        genbell
42
                ./genbell >$(SRC2)
43
 
44
genbell:        genbell.c
45
                gcc -m32 -g -Wall -o genbell genbell.c -lm
46
 
47
clean:
48
                rm -f genbell $(SRC2) $(OBJ2)
49
                rm -f $(OBJ1) $(BIN) $(MAP) $(EXO)
50
                rm -f *~

powered by: WebSVN 2.1.0

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