代码拉取完成,页面将自动刷新
CC=gcc
CFLAGS=-DDEBUG
OBJS=sim.o loader.o helper.o shifter.o mmu.o extender.o syscall.o
all: unisim test_sim
unisim: main.c $(OBJS)
$(CC) $(CFLAGS) -o unisim main.c $(OBJS)
test: test.c $(OBJS)
$(CC) $(CFLAGS) -o test test.c $(OBJS)
sim.o: sim.c sim.h helper.h helper.o
$(CC) $(CFLAGS) -c sim.c
loader.o: loader.c loader.h helper.h helper.o
$(CC) $(CFLAGS) -c loader.c
helper.o: helper.c helper.h
$(CC) $(CFLAGS) -c helper.c
shifter.o: shifter.c shifter.h
$(CC) $(CFLAGS) -c shifter.c
mmu.o: mmu.c mmu.h
$(CC) $(CFLAGS) -c mmu.c
extender.o: extender.c extender.h
$(CC) $(CFLAGS) -c extender.c
test_sim: sim.o test_sim.c
$(CC) $(CFLAGS) -o test_sim test_sim.c sim.h
syscall.o: syscall.c syscall.h
$(CC) $(CFLAGS) -c syscall.c
clean:
rm *.o
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。