dComArk15/Aflevering5-x86-64/makefile
Christoffer Müller Madsen e2e36f9f0d initial commit
2016-01-03 13:29:05 +01:00

25 lines
684 B
Makefile

CC=gcc
CFLAGS=
INSTALL_PATH=/usr/local
all: fib fib-as fib_iter fib_iter-as fib-pure-as
fib: fib.c
$(CC) $(CFLAGS) fib.c -o bin/fib
fib-as: fib-ext.c fib.s
$(CC) $(CFLAGS) fib-ext.c fib.s -o bin/fib-as
fib_iter: fib_iter.c
$(CC) $(CFLAGS) fib_iter.c -o bin/fib_iter
fib_iter-as: fib_iter-ext.c fib_iter.s
$(CC) $(CFLAGS) fib_iter-ext.c fib_iter.s -o bin/fib_iter-as
fib-pure-as: fib-pure-as.s
$(CC) $(CFLAGS) fib-pure-as.s -o bin/fib-pure-as
install:
cp bin/fib* ${INSTALL_PATH}/bin
uninstall:
rm ${INSTALL_PATH}/bin/fib
rm ${INSTALL_PATH}/bin/fib_iter
rm ${INSTALL_PATH}/bin/fib-as
rm ${INSTALL_PATH}/bin/fib_iter-as
rm ${INSTALL_PATH}/bin/fib-pure-as
clean:
rm bin/fib*