More makefile fixes.

This commit is contained in:
Pietro Gagliardi 2015-10-16 23:33:53 -04:00
parent f19d3cd0c7
commit 260a7f4879
2 changed files with 13 additions and 16 deletions

View File

@ -10,14 +10,18 @@ HFILES += \
NAME = libui
CFLAGS += \
-fPIC
# GROAN GCC
#CFLAGS += \
# -fPIC
SUFFIX = $(LIBSUFFIX)
LDFLAGS += \
-shared \
-fPIC \
-shared
# weird things:
# GROAN GCC
# -fPIC \
# confused by this
# -Wl,-soname,$(NAME)$(SUFFIX).0
include GNUbaserules.mk

View File

@ -3,20 +3,13 @@
EXESUFFIX = .exe
LIBSUFFIX = .dll
# TODO only when cross-compiling?
ifeq ($(ARCH),amd64)
ifndef CC
CC = x86_64-w64-mingw32-gcc
endif
ifndef RC
RC = x86_64-w64-mingw32-windres
endif
CC = x86_64-w64-mingw32-gcc
RC = x86_64-w64-mingw32-windres
else ifeq ($(ARCH),386)
ifndef CC
CC = i686-w64-mingw32-gcc
endif
ifndef RC
RC = i686-w64-mingw32-windres
endif
CC = i686-w64-mingw32-gcc
RC = i686-w64-mingw32-windres
else ifneq ($(ARCH),default)
$(error [FAIL] unknown architecture $(ARCH))
endif