summaryrefslogtreecommitdiff
path: root/util/alternatives/Make.mk
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-03-25 17:42:33 -0400
committerFreya Murphy <freya@freyacat.org>2025-03-25 17:42:33 -0400
commit9b26a288ae243b9497316e7c94dbc7914a09b14f (patch)
tree2f23696a2bf98fa3271bf4907f452b00ded70d27 /util/alternatives/Make.mk
parentconvert build system to zig (diff)
downloadcomus-9b26a288ae243b9497316e7c94dbc7914a09b14f.tar.gz
comus-9b26a288ae243b9497316e7c94dbc7914a09b14f.tar.bz2
comus-9b26a288ae243b9497316e7c94dbc7914a09b14f.zip
remove legacy bullshit
Diffstat (limited to 'util/alternatives/Make.mk')
-rw-r--r--util/alternatives/Make.mk56
1 files changed, 0 insertions, 56 deletions
diff --git a/util/alternatives/Make.mk b/util/alternatives/Make.mk
deleted file mode 100644
index d5703e8..0000000
--- a/util/alternatives/Make.mk
+++ /dev/null
@@ -1,56 +0,0 @@
-#
-# Makefile fragment for the utility programs
-#
-# THIS IS NOT A COMPLETE Makefile - run GNU make in the top-level
-# directory, and this will be pulled in automatically.
-#
-
-SUBDIRS += util
-
-###################
-# RULES SECTION #
-###################
-
-# how to make everything
-util: $(BUILDDIR)/util/BuildImage $(BUILDDIR)/util/Offsets \
- $(BUILDDIR)/util/mkblob $(BUILDDIR)/util/listblob
-
-#
-# Special rules for creating the utility programs. These are required
-# because we don't want to use the same options as for the standalone
-# binaries - we want these to be compiled as "normal" programs.
-#
-
-$(BUILDDIR)/util/BuildImage: util/BuildImage.c
- @mkdir -p $(@D)
- $(CC) -std=c99 -o $(BUILDDIR)/util/BuildImage util/BuildImage.c
-
-$(BUILDDIR)/util/mkblob: util/mkblob.c
- @mkdir -p $(@D)
- $(CC) -std=c99 -o $(BUILDDIR)/util/mkblob util/mkblob.c
-
-$(BUILDDIR)/util/listblob: util/listblob.c
- @mkdir -p $(@D)
- $(CC) -std=c99 -o $(BUILDDIR)/util/listblob util/listblob.c
-
-#
-# Offsets is compiled using -mx32 to force a 32-bit execution environment
-# for a program that runs under a 64-bit operating system. This ensures
-# that pointers and long ints are 32 bits rather than 64 bits, which is
-# critical to correctly determining the size of types and byte offsets for
-# fields in structs. We also compile with "-fno-builtin" to avoid signature
-# clashes between declarations in our system and function declarations
-# built into the C compiler.
-#
-# If compiled with the CPP macro CREATE_HEADER_FILE defined, Offsets
-# accepts a command-line argument "-h". This causes it to write its
-# output as a standard C header file into a file named "include/offsets.h"
-# where it can be included into other source files (e.g., to provide
-# sizes of structs in C and assembly, or to provide byte offsets into
-# structures for use in assembly code).
-#
-
-$(BUILDDIR)/util/Offsets: util/Offsets.c
- @mkdir -p $(@D)
- $(CC) -mx32 -std=c99 $(INCLUDES) -fno-builtin \
- -o $(BUILDDIR)/util/Offsets util/Offsets.c