aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0a46896..1f4b78d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
include Make.config
+include Make.$(OS)
BIN = src/curses.so
OBJ = src/curses.o src/strings.o
@@ -6,7 +7,7 @@ CC = gcc
INCLUDES =
DEFINES =
LIBS = -lcurses -llua
-COMMONFLAGS = -Werror -Wall -pedantic -O0 -g -pipe -fpic
+COMMONFLAGS = -Werror -Wall -pedantic -O0 -g -pipe $(OS_FLAGS)
CFLAGS = -c $(INCLUDES) $(DEFINES) $(COMMONFLAGS)
LDFLAGS = $(LIBS) $(COMMONFLAGS) -shared