diff options
author | epochqwert <epoch@hacking.allowed.org> | 2016-11-14 18:00:49 +0000 |
---|---|---|
committer | epochqwert <epoch@hacking.allowed.org> | 2016-11-14 18:00:49 +0000 |
commit | c3856f9f1db26ab379dae9e750dc7b8b42705255 (patch) | |
tree | 4b62455708c77f53dc5a400e7e1b13337af63a81 | |
parent | 09432da65f5adca6316cf1a37f2c8d61338c8222 (diff) | |
download | libhashtable-c3856f9f1db26ab379dae9e750dc7b8b42705255.tar.gz libhashtable-c3856f9f1db26ab379dae9e750dc7b8b42705255.zip |
made the Makefile a bit more sane.
-rw-r--r-- | Makefile | 16 | ||||
-rw-r--r-- | README (renamed from README.md) | 0 |
2 files changed, 11 insertions, 5 deletions
@@ -1,16 +1,22 @@ -LDFLAGS=-lhashtable -Llibhashtable +### why the fuck is this here? LDFLAGS=-lhashtable -Llibhashtable CFLAGS=-fpic -shared -pedantic -Wall +PREFIX=/usr/local TARGET=libhashtable.so all: $(TARGET) -$(TARGET): libhashtable.c +libhashtable.h: ./genheader.sh - $(CC) $(CFLAGS) -o $(TARGET) libhashtable.c + +$(TARGET): libhashtable.c libhashtable.h clean: rm -f libhashtable.so install: - cp $(TARGET) /usr/local/lib/$(TARGET) - cp hashtable.h /usr/local/include/hashtable.h + cp $(TARGET) $(PREFIX)/lib/$(TARGET) + cp hashtable.h $(PREFIX)/include/hashtable.h + +uninstall: + rm $(PREFIX)/lib/$(TARGET) + rm $(PREFIX)/include/hashtable.h |