feat: update minishell structure

change rust language -> GNU Assembly
add a Dockerfile to build on x64 linux
also add Makefile pre config (must change)
This commit is contained in:
2025-10-12 19:21:47 +02:00
parent 61980d7946
commit e2a49516ec
9 changed files with 75 additions and 56 deletions

32
Makefile Normal file
View File

@@ -0,0 +1,32 @@
TARGET ?= main
SRC := $(wildcard src/*.s src/*.asm)
OBJ := $(SRC:.s=.o)
OBJ := $(OBJ:.asm=.o)
AS = as
LD = ld
NASM = nasm
ASFLAGS =
NASMFLAGS = -f elf64
LDFLAGS =
all: $(TARGET) run
%.o: %.s
$(AS) $(ASFLAGS) -o $@ $<
%.o: %.asm
$(NASM) $(NASMFLAGS) -o $@ $<
$(TARGET): $(OBJ)
$(LD) $(LDFLAGS) -o $@ $^
clean:
rm -f $(OBJ) $(TARGET)
re: clean all
run: $(TARGET)
./$(TARGET)