embedded-3-strings/Makefile

11 lines
278 B
Makefile
Raw Normal View History

2024-09-15 16:53:50 +03:00
ASMFLAGS =
CFLAGS = -I lib -O3
build: src/strutils.asm src/main.c
nasm $(ASMFLAGS) -f elf64 -o out/strutils.o src/strutils.asm
#gcc $(CFLAGS) -o out/main.o -c src/main.c
#ld -o bin/main out/main.o out/strutils.o
gcc $(CFLAGS) -o bin/main \
src/main.c \
out/strutils.o