Files
uiuc-ece391-mp3/fish/Makefile
ece391staff 7fc79b62ed MP3 Release
2018-10-15 13:22:04 -05:00

26 lines
625 B
Makefile

all: fish
# Note that you must be superuser to run the emulated version of the
# program.
fish_emulated: fish.o blink.o ece391emulate.o ece391support.o
gcc -nostdlib -lc -g -o fish_emulated fish.o blink.o ece391emulate.o ece391support.o
fish: fish.exe
../elfconvert fish.exe
mv fish.exe.converted fish
fish.exe: fish.o blink.o ece391support.o ece391syscall.o
gcc -nostdlib -g -o fish.exe fish.o blink.o ece391syscall.o ece391support.o
%.o: %.S
gcc -nostdlib -c -Wall -g -D_USERLAND -D_ASM -o $@ $<
%.o: %.c
gcc -nostdlib -Wall -c -g -o $@ $<
clean::
rm -f *.o *~
clear: clean
rm -f fish fish.exe fish_emulated