aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-01-02 06:14:45 -0300
committerEuAndreh <eu@euandre.org>2024-01-02 06:14:45 -0300
commit3130b8603ea2b06f103283a4a8222f28703be874 (patch)
tree04780f27cd6ae206762ad038f30642cd098d3bdc /Makefile
parentgit mv WHATSNEW CHANGELOG.md (diff)
downloadgrovel-3130b8603ea2b06f103283a4a8222f28703be874.tar.gz
grovel-3130b8603ea2b06f103283a4a8222f28703be874.tar.xz
Makefile: Inline everything into a single file
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile55
1 files changed, 51 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index e8cc4436..5bf31622 100644
--- a/Makefile
+++ b/Makefile
@@ -75,7 +75,54 @@ WRAPCC_CLANG = clang
LDSO_PATHNAME = $(syslibdir)/ld-musl-$(ARCH)$(SUBARCH).so.1
--include config.mak
+
+
+
+
+
+
+
+
+
+
+
+
+
+# This version of config.mak was generated by:
+# ./configure --enable-debug --disable-shared
+# Any changes made here will be lost if configure is re-run
+AR = $(CROSS_COMPILE)ar
+RANLIB = $(CROSS_COMPILE)ranlib
+ARCH = x86_64
+SUBARCH =
+ASMSUBARCH =
+srcdir = .
+prefix = /usr/local/musl
+exec_prefix = $(prefix)
+bindir = $(exec_prefix)/bin
+libdir = $(prefix)/lib
+includedir = $(prefix)/include
+syslibdir = /lib
+CC = gcc
+CFLAGS =
+CFLAGS_AUTO = -g -O2 -fno-align-jumps -fno-align-functions -fno-align-loops -fno-align-labels -fira-region=one -fira-hoist-pressure -freorder-blocks-algorithm=simple -fno-prefetch-loop-arrays -fno-tree-ch -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables -ffunction-sections -fdata-sections -Wno-pointer-to-int-cast -Werror=implicit-function-declaration -Werror=implicit-int -Werror=pointer-sign -Werror=pointer-arith -Werror=int-conversion -Werror=incompatible-pointer-types -Werror=discarded-qualifiers -Werror=discarded-array-qualifiers -Waddress -Warray-bounds -Wchar-subscripts -Wduplicate-decl-specifier -Winit-self -Wreturn-type -Wsequence-point -Wstrict-aliasing -Wunused-function -Wunused-label -Wunused-variable
+CFLAGS_C99FSE = -std=c99 -nostdinc -ffreestanding -fexcess-precision=standard -frounding-math -fno-strict-aliasing -Wa,--noexecstack
+CFLAGS_MEMOPS = -fno-tree-loop-distribute-patterns
+CFLAGS_NOSSP = -fno-stack-protector
+CPPFLAGS =
+LDFLAGS =
+LDFLAGS_AUTO = -Wl,--sort-section,alignment -Wl,--sort-common -Wl,--gc-sections -Wl,--hash-style=both -Wl,--no-undefined -Wl,--exclude-libs=ALL
+CROSS_COMPILE =
+LIBCC = -lgcc -lgcc_eh
+OPTIMIZE_GLOBS = internal/*.c malloc/*.c string/*.c
+ALL_TOOLS = obj/musl-gcc
+TOOL_LIBS = lib/musl-gcc.specs
+ADD_CFI = yes
+MALLOC_DIR = mallocng
+SHARED_LIBS =
+WRAPCC_GCC = $(CC)
+
+
-include $(srcdir)/arch/$(ARCH)/arch.mak
ifeq ($(ARCH),)
@@ -177,14 +224,14 @@ lib/%.o: obj/crt/$(ARCH)/%.o
lib/%.o: obj/crt/%.o
cp $< $@
-lib/musl-gcc.specs: $(srcdir)/tools/musl-gcc.specs.sh config.mak
+lib/musl-gcc.specs: $(srcdir)/tools/musl-gcc.specs.sh
sh $< "$(includedir)" "$(libdir)" "$(LDSO_PATHNAME)" > $@
-obj/musl-gcc: config.mak
+obj/musl-gcc:
printf '#!/bin/sh\nexec "$${REALGCC:-$(WRAPCC_GCC)}" "$$@" -specs "%s/musl-gcc.specs"\n' "$(libdir)" > $@
chmod +x $@
-obj/%-clang: $(srcdir)/tools/%-clang.in config.mak
+obj/%-clang: $(srcdir)/tools/%-clang.in
sed -e 's!@CC@!$(WRAPCC_CLANG)!g' -e 's!@PREFIX@!$(prefix)!g' -e 's!@INCDIR@!$(includedir)!g' -e 's!@LIBDIR@!$(libdir)!g' -e 's!@LDSO@!$(LDSO_PATHNAME)!g' $< > $@
chmod +x $@