From a651d8da59631c794b355f2b4a0fdf2cdf6356a4 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sat, 9 Jan 2016 18:45:52 -0500 Subject: [PATCH] s6145: More makefile wrangling. --- Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 75a8b72..a2c6f5b 100644 --- a/Makefile +++ b/Makefile @@ -33,8 +33,7 @@ UNAME_P := $(shell uname -p) ifeq ($(UNAME_S),Linux) ifeq ($(UNAME_P),x86_64) LIBS6145_NAME = S6145ImageProcess-x64 -endif -ifneq ($(filter %86,$(UNAME_P)),) +else ifneq ($(filter %86,$(UNAME_P)),) LIBS6145_NAME = S6145ImageProcess-x32 else LIBS6145 = @@ -97,9 +96,9 @@ clean: # Reverse-engineered LibS6145ImageProcess ifneq ($(LIBS6145_RE),) $(LIBS6145)/libS6145ImageProcessRE.so: $(LIBS6145)/libS6145ImageProcess.o - $(CC) -lm -Os -g -shared -o $@ $< + $(CC) -lm -g -shared -o $@ $< $(LIBS6145)/libS6145ImageProcess.o: $(LIBS6145)/libS6145ImageProcess.c - $(CC) -c -Wall -Wextra -fno-strict-overflow -o $@ -fPIC $< + $(CC) -c $(CFLAGS) -fno-strict-overflow -fPIC -o $@ $< endif