《操作系统》的实验代码。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

14 lines
344 B

binaries=memory.o main.o
all:
gcc -g -ansi -c *.c main.c #-m32: this makes a 32-bit build, but you might have to "sudo apt-get install libc6-dev-i386" first
echo Compiling done
gcc -g -ansi *.o -o main
echo Linking done
#make clean #uncomment this if you don't care to debug, symbols and all
clean:
rm -f $(binaries)
echo Clean done