From 78041817542a06e817281d6614fc67be7c6196a5 Mon Sep 17 00:00:00 2001 From: Moon Flower Date: Tue, 11 Mar 2025 22:55:14 +0330 Subject: Converted the build system to C! + Slight improvements --- Makefile | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile deleted file mode 100644 index c69c23b..0000000 --- a/Makefile +++ /dev/null @@ -1,37 +0,0 @@ -FLAGS = -Wno-incompatible-library-redeclaration -nostartfiles -nostdlib -SIZE_FLAGS = -Wl,--undefined=main -flto -Oz -ffunction-sections -fdata-sections -Wl,--gc-sections -Wl,--strip-all -finline-hint-functions -fno-builtin -Wl,--print-gc-sections -fno-unwind-tables -fomit-frame-pointer -fno-asynchronous-unwind-tables -fno-ident -fvisibility=hidden -march=native -Wl,--build-id=none - -all: m4 c test - -clean: - rm -rf out.* - rm -rf *.m4.h - rm -rf perf.data* - -m4: - m4 moonshine.m4 > moonshine.m4.h - -c: - clang main.c -o out.bin $(FLAGS) -O3 - -test: - ./out.bin - -profile: - clang main.c -o out.bin.profile $(FLAGS) -O3 - perf record ./out.bin.profile - perf report > ./out.profile.txt - -release: - clang main.c -o out.bin.release $(FLAGS) $(SIZE_FLAGS) - -debug: m4 - clang main.c -o out.bin $(FLAGS) -g - lldb ./out.bin -o run - -install: - # make sure you have your CPATH configured to recognize `~/include/`! - cp moonshine.h ~/include/moonshine.h - cp moonshine.m4.h ~/include/moonshine.m4.h - -full: m4 c test install -- cgit v1.2.3