computing-systems-212 / Make & GDB Demo / files / makefile
makefile
Raw
CC=gcc

all: fibasmcomp fibcompile bigfi

fibasmcomp: fibasm.s
	gcc -c -g fibasm.s -I.

fibcompile: bigfib.c fibc.c buf.c
	gcc -c -g bigfib.c buf.c -I.

bigfib: bigfib.o fibasm.o buf.o
	gcc -o -g bigfib bigfib.o fibasm.o buf.o -I.

smolfib:
	as smolfib.s fib.s && ld -o smolfib smolfib.o fib.o

clean:
	-rm *.o bigfib