unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 8c653c03e6e87dd021c93497ba495ec2db7e8d00 2308 bytes (raw)
name: gnu/packages/patches/futil-Add-Makefile.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
 
From 29c2ab3931bc0749fb72d222b14a629170cea9e6 Mon Sep 17 00:00:00 2001
From: AwesomeAdam54321 <adam.faiz@disroot.org>
Date: Sun, 12 Mar 2023 00:47:56 +0800
Subject: [PATCH] futil: Add Makefile.

Adapted from https://gitlab.com/hydren/terrarium/-/blob/master/build/linux-gcc-sdl2-release/src_libs/futil/subdir.mk
---
 Makefile | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 71 insertions(+)
 create mode 100644 Makefile

diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..39d2275
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,71 @@
+################################################################################
+# Automatically-generated file. Do not edit!
+################################################################################
+
+# Add inputs and outputs from these tool invocations to the build variables
+CPP_SRCS += \
+exception.cpp \
+properties.cpp \
+stox.cpp \
+string_actions.cpp \
+string_extra_operators.cpp \
+string_parse.cpp \
+string_split.cpp
+
+C_SRCS += \
+chrono.c \
+random.c \
+round.c \
+snprintf.c \
+strtox.c
+
+OBJS += \
+chrono.so \
+exception.so \
+properties.so \
+random.so \
+round.so \
+snprintf.so \
+stox.so \
+string_actions.so \
+string_extra_operators.so \
+string_parse.so \
+string_split.so \
+strtox.so
+
+SRCDIR ?= .
+INCLUDE_PATH ?= ${SRCDIR}/include
+PREFIX ?= /usr/local
+
+all: libfutil.so
+
+libfutil.so: $(OBJS) $(USER_OBJS)
+	@echo 'Building target: $@'
+	@echo 'Invoking: GCC C++ Linker'
+	g++ -shared -o "libfutil.so" $(OBJS) $(USER_OBJS) $(LIBS)
+	@echo 'Finished building target: $@'
+	@echo ' '
+
+install: all
+	install -d $(DESTDIR)$(PREFIX)
+	cp -r include $(DESTDIR)$(PREFIX)
+	install -d $(DESTDIR)$(PREFIX)/lib
+	install -m 644 libfutil.so $(DESTDIR)$(PREFIX)/lib
+
+%.so: %.c
+	@echo 'Building file: $<'
+	@echo 'Invoking: GCC C Compiler'
+	gcc -O3 -Wall -shared -fPIC -I${INCLUDE_PATH} -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+	@echo 'Finished building: $<'
+	@echo ' '
+
+%.so: %.cpp
+	@echo 'Building file: $<'
+	@echo 'Invoking: GCC C++ Compiler'
+	g++ -I${INCLUDE_PATH} -O3 -Wall -shared -fPIC -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+	@echo 'Finished building: $<'
+	@echo ' '
+
+clean:
+	rm $(wildcard *.so)
+
--
2.39.2


debug log:

solving 2c5760d31b ...
found 2c5760d31b in https://yhetil.org/guix-patches/dbde991b-71c4-2083-c805-fe8c762d08a1@disroot.org/

applying [1/1] https://yhetil.org/guix-patches/dbde991b-71c4-2083-c805-fe8c762d08a1@disroot.org/
diff --git a/gnu/packages/patches/futil-Add-Makefile.patch b/gnu/packages/patches/futil-Add-Makefile.patch
new file mode 100644
index 0000000000..2c5760d31b

Checking patch gnu/packages/patches/futil-Add-Makefile.patch...
1:97: new blank line at EOF.
+
Applied patch gnu/packages/patches/futil-Add-Makefile.patch cleanly.
warning: 1 line adds whitespace errors.

index at:
100644 8c653c03e6e87dd021c93497ba495ec2db7e8d00	gnu/packages/patches/futil-Add-Makefile.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).