From 005530bd8eb3ba7ddc55d85f7941c576d6418488 Mon Sep 17 00:00:00 2001 From: mithe24 Date: Sat, 11 Oct 2025 18:36:14 +0200 Subject: build: Move Makefile to src/ and putting object files in src/ too Changed output directory for objects files and put Makefile in src/. This is because that is how it's expected in desc.pdf --- Makefile | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile deleted file mode 100644 index 2694891..0000000 --- a/Makefile +++ /dev/null @@ -1,28 +0,0 @@ -TARGET := sorter -SRC_DIR := ./src -BUILD_DIR := ./build - -AS := as -LD := ld -ASFLAGS := -g -LDFLAGS := -g - -SRCS := $(shell find $(SRC_DIR) -name '*.s') -OBJS := $(patsubst %.s,%.o,$(SRCS:$(SRC_DIR)/%=$(BUILD_DIR)/%)) - -all: $(TARGET) - -$(TARGET): $(OBJS) - $(LD) $(LDFLAGS) $(OBJS) -o $@ - -$(BUILD_DIR)/%.o: $(SRC_DIR)/%.s - @mkdir -p $(dir $@) - $(AS) $(ASFLAGS) $< -o $@ - -deploy: $(TARGET) - tar -czvf $(TARGET).tar.gz $(TARGET) README.md - -clean: - rm -r $(BUILD_DIR) $(TARGET) - -.PHONY: all clean deploy -- cgit v1.2.3-70-g09d2