2 Star 2 Fork 0

林博珩 / bytecodeInterpreter

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 548 Bytes
一键复制 编辑 原始数据 按行查看 历史
林博珩 提交于 2021-05-04 13:55 . init code
# Makefile
GCC = gcc.exe
ASM = nasm.exe
LD = ld.exe
STRIP = strip.exe
CFLAGS = -c -m32
AFLAGS = -f win32
LDFLAGS = -m i386pe -e main
RM = del
COBJS = main.o
AOBJS = asm.o
TAR = vm.exe
.PHONY: build clean assembler
build: $(TAR)
$(TAR): $(COBJS) $(AOBJS)
$(GCC) $(AOBJS) $(COBJS) -m32 -o $@ -s -lws2_32 -lcomdlg32
$(COBJS): %.o: %.c
$(GCC) $(CFLAGS) $< -o $@
$(AOBJS): %.o: %.S
$(ASM) $(AFLAGS) $< -o $@
assembler: assemble.exe
assemble.exe: assemble.c
$(GCC) $< -o $@ -m32
$(STRIP) $@ -s
clean:
$(RM) $(COBJS) $(AOBJS) $(TAR)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/lin-boheng/bytecodeInterpreter.git
git@gitee.com:lin-boheng/bytecodeInterpreter.git
lin-boheng
bytecodeInterpreter
bytecodeInterpreter
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891