mirror of https://github.com/PCSX2/pcsx2.git
49 lines
1.1 KiB
Makefile
49 lines
1.1 KiB
Makefile
![]() |
# Create a shared library libZeroGSogl
|
||
|
AUTOMAKE_OPTIONS = foreign
|
||
|
noinst_LIBRARIES = libZeroGSogl.a
|
||
|
|
||
|
libZeroGSogl_a_CPPFLAGS = $(shell pkg-config --cflags gtk+-2.0)
|
||
|
libZeroGSogl_a_CXXFLAGS = $(shell pkg-config --cflags gtk+-2.0)
|
||
|
|
||
|
if X86_64
|
||
|
libZeroGSogl_a_CPPFLAGS += -fPIC
|
||
|
libZeroGSogl_a_CXXFLAGS += -fPIC
|
||
|
CCASFLAGS += -fPIC
|
||
|
endif
|
||
|
|
||
|
# Create a shared object by faking an exe (thanks to ODE makefiles)
|
||
|
traplibdir=$(prefix)
|
||
|
|
||
|
|
||
|
if RELEASE_TO_PUBLIC
|
||
|
preext=r
|
||
|
endif
|
||
|
|
||
|
EXEEXT=$(preext)@so_ext@
|
||
|
|
||
|
traplib_PROGRAMS=libZeroGSogl
|
||
|
libZeroGSogl_SOURCES=
|
||
|
libZeroGSogl_DEPENDENCIES = libZeroGSogl.a
|
||
|
libZeroGSogl_LDFLAGS= @SHARED_LDFLAGS@
|
||
|
libZeroGSogl_LDFLAGS+=-Wl,-soname,@ZEROGS_SONAME@
|
||
|
libZeroGSogl_LDADD=$(libZeroGSogl_a_OBJECTS)
|
||
|
|
||
|
libZeroGSogl_a_SOURCES = \
|
||
|
GSmain.cpp memcpy_amd.cpp Regs.cpp x86.cpp zpipe.cpp \
|
||
|
Mem.cpp rasterfont.cpp targets.cpp zerogs.cpp
|
||
|
|
||
|
if X86_64
|
||
|
libZeroGSogl_a_SOURCES += x86-64.S
|
||
|
else
|
||
|
libZeroGSogl_a_SOURCES += x86-32.S
|
||
|
endif
|
||
|
|
||
|
if SSE2
|
||
|
CCASFLAGS+= -DZEROGS_SSE2
|
||
|
endif
|
||
|
|
||
|
libZeroGSogl_a_DEPENDENCIES = Linux/libZeroGSLinux.a
|
||
|
libZeroGSogl_LDADD += Linux/libZeroGSLinux.a
|
||
|
|
||
|
SUBDIRS = Linux .
|