From ae15d7ba087f81d713280785840122dea81ea844 Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Thu, 29 Feb 2024 01:50:44 +0100 Subject: Fixes for running on Linux. --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 230df19..6b4b6e1 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ CC := gcc LIB := bin/libsalis.so +ULIB := /usr/lib/libsalis.so SOURCES := $(wildcard src/*.c) OBJECTS := $(patsubst src/%.c,build/%.o,$(SOURCES)) @@ -13,8 +14,9 @@ LFLAGS := -shared # uncomment for release OFLAGS := -O3 -DNDEBUG -CFLAGS := -Iinclude -c $(OFLAGS) -MMD -Wall -Wextra -std=c89 -pedantic-errors \ - -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition +CFLAGS := -Iinclude -c $(OFLAGS) -MMD -Wall -Wextra -std=c89 -fPIC \ + -pedantic-errors -Wmissing-prototypes -Wstrict-prototypes \ + -Wold-style-definition all: $(OBJECTS) $(CC) $(LFLAGS) -o $(LIB) $(OBJECTS) @@ -29,3 +31,6 @@ clean: -rm build/* -rm $(LIB) $(MAKE) clean -C tsalis + +install: + cp $(LIB) $(ULIB) -- cgit v1.2.1