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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [stdalone/] [dactest/] [Makefile] - Diff between revs 245 and 259

Only display areas with differences | Details | Blame | View Log

Rev 245 Rev 259
#
#
# Makefile for "dactest", a program for testing the audio DAC
# Makefile for "dactest", a program for testing the audio DAC
#
#
BUILD = ../../build
BUILD = ../../build
SRC1 = dactest.s
SRC1 = dactest.s
OBJ1 = dactest.o
OBJ1 = dactest.o
SRC2 = bell.s
SRC2 = bell.s
OBJ2 = bell.o
OBJ2 = bell.o
BIN = dactest.bin
BIN = dactest.bin
MAP = dactest.map
MAP = dactest.map
EXO = dactest.exo
EXO = dactest.exo
.PHONY:         all install run clean
.PHONY:         all install run clean
all:            $(BIN) $(EXO)
all:            $(BIN) $(EXO)
install:        $(BIN) $(EXO)
install:        $(BIN) $(EXO)
                mkdir -p $(BUILD)/stdalone
                mkdir -p $(BUILD)/stdalone
                cp $(BIN) $(BUILD)/stdalone
                cp $(BIN) $(BUILD)/stdalone
                cp $(MAP) $(BUILD)/stdalone
                cp $(MAP) $(BUILD)/stdalone
                cp $(EXO) $(BUILD)/stdalone
                cp $(EXO) $(BUILD)/stdalone
run:            $(BIN)
run:            $(BIN)
                $(BUILD)/bin/sim -i -s 1 -t 0 -l $(BIN) -a 0x10000
                $(BUILD)/bin/sim -i -s 1 -t 0 -l $(BIN) -a 0x10000
$(EXO):         $(BIN)
$(EXO):         $(BIN)
                $(BUILD)/bin/bin2exo -S2 0x10000 $(BIN) $(EXO)
                $(BUILD)/bin/bin2exo -S2 0x10000 $(BIN) $(EXO)
$(BIN):         $(OBJ1) $(OBJ2)
$(BIN):         $(OBJ1) $(OBJ2)
                $(BUILD)/bin/ld -h -rc 0xC0010000 \
                $(BUILD)/bin/ld -h -rc 0xC0010000 \
                  -m $(MAP) -o $(BIN) $(OBJ1) $(OBJ2)
                  -m $(MAP) -o $(BIN) $(OBJ1) $(OBJ2)
$(OBJ1):        $(SRC1)
$(OBJ1):        $(SRC1)
                $(BUILD)/bin/as -o $(OBJ1) $(SRC1)
                $(BUILD)/bin/as -o $(OBJ1) $(SRC1)
$(OBJ2):        $(SRC2)
$(OBJ2):        $(SRC2)
                $(BUILD)/bin/as -o $(OBJ2) $(SRC2)
                $(BUILD)/bin/as -o $(OBJ2) $(SRC2)
$(SRC2):        genbell
$(SRC2):        genbell
                ./genbell >$(SRC2)
                ./genbell >$(SRC2)
genbell:        genbell.c
genbell:        genbell.c
                gcc -m32 -g -Wall -o genbell genbell.c -lm
                gcc -g -Wall -o genbell genbell.c -lm
 
 
clean:
clean:
                rm -f genbell $(SRC2) $(OBJ2)
                rm -f genbell $(SRC2) $(OBJ2)
                rm -f $(OBJ1) $(BIN) $(MAP) $(EXO)
                rm -f $(OBJ1) $(BIN) $(MAP) $(EXO)
                rm -f *~
                rm -f *~
 
 

powered by: WebSVN 2.1.0

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