-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: libhashtable
action: commit
revision:
path_from:
revision_from: 68cdf93f9ed722c08e63771e875721d3b0165509:
path_to:
revision_to:

git.thebackupbox.net

libhashtable

git://git.thebackupbox.net/libhashtable

commit 68cdf93f9ed722c08e63771e875721d3b0165509
Author: epochqwert <epoch@hacking.allowed.org>
Date:   Tue Mar 12 17:27:16 2019 +0000

    changed cp to install, optional override of PREFIX, use LD insted of expecting make to know how to build a shared lib.

diff --git a/Makefile b/Makefile

index 89e9937bdc8805a5afd6d95771b94842f9d8f137..

index ..25fb69db99d9d1620d6d6343ee03d6e1781fc033 100644

--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 ### why the fuck is this here? LDFLAGS=-lhashtable -Llibhashtable
-CFLAGS=-fpic -shared -pedantic -Wall
-PREFIX=/usr/local
+CFLAGS=-fpic -shared -pedantic -Wall -g3
+PREFIX:=/usr/local
 TARGET=libhashtable.so

 all: $(TARGET)
@@ -8,14 +8,18 @@ all: $(TARGET)
 libhashtable.h:
 	./genheader.sh

-$(TARGET): libhashtable.c libhashtable.h
+$(TARGET): libhashtable.o
+	ld -shared -o $(TARGET) libhashtable.o

 clean:
 	rm -f libhashtable.so
+	rm *.o

 install:
-	cp $(TARGET) $(PREFIX)/lib/$(TARGET)
-	cp hashtable.h $(PREFIX)/include/hashtable.h
+	mkdir -p $(PREFIX)/lib
+	mkdir -p $(PREFIX)/include
+	install $(TARGET) $(PREFIX)/lib/$(TARGET)
+	install hashtable.h $(PREFIX)/include/hashtable.h

 uninstall:
 	rm $(PREFIX)/lib/$(TARGET)

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 09:32:23 2024