CS计算机代考程序代写 assembler #########################################################

#########################################################
# file name : Makefile #
# author : Rachel Kong #
# description : Makefile to automate compiling #
# and linking #
#########################################################
#
#

all: lc4

clean:
rm -rf *.o

clobber: clean
rm -rf lc4

lc4_memory.o: lc4_memory.c lc4_memory.h
clang -c -g lc4_memory.c

lc4_loader.o: lc4_loader.c lc4_loader.h
clang -c -g lc4_loader.c

lc4_disassembler.o: lc4_disassembler.c lc4_disassembler.h
clang -c -g lc4_disassembler.c

lc4: lc4_memory.o lc4_loader.o lc4_disassembler.o
clang -g lc4_memory.o lc4_loader.o lc4_disassembler.o lc4.c -o lc4