2014-08-04 01:02:04 +00:00
|
|
|
#
|
2017-09-14 20:09:35 +00:00
|
|
|
# sdl12/makeNIX.cfg for SRB2/?nix
|
2014-08-04 01:02:04 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
#Valgrind support
|
|
|
|
ifdef VALGRIND
|
|
|
|
VALGRIND_PKGCONFIG?=valgrind
|
|
|
|
VALGRIND_CFLAGS?=$(shell $(PKG_CONFIG) $(VALGRIND_PKGCONFIG) --cflags)
|
|
|
|
VALGRIND_LDFLAGS?=$(shell $(PKG_CONFIG) $(VALGRIND_PKGCONFIG) --libs)
|
|
|
|
ZDEBUG=1
|
|
|
|
LIBS+=$(VALGRIND_LDFLAGS)
|
|
|
|
ifdef GCC46
|
|
|
|
WFLAGS+=-Wno-error=unused-but-set-variable
|
|
|
|
WFLAGS+=-Wno-unused-but-set-variable
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
#
|
|
|
|
#here is GNU/Linux and other
|
|
|
|
#
|
|
|
|
|
|
|
|
OPTS=-DUNIXCOMMON
|
|
|
|
|
|
|
|
#LDFLAGS = -L/usr/local/lib
|
|
|
|
LIBS=-lm
|
|
|
|
ifdef LINUX
|
|
|
|
LIBS+=-lrt
|
|
|
|
ifdef NOTERMIOS
|
|
|
|
OPTS+=-DNOTERMIOS
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
#
|
|
|
|
#here is Solaris
|
|
|
|
#
|
|
|
|
ifdef SOLARIS
|
|
|
|
NOIPX=1
|
|
|
|
NOASM=1
|
|
|
|
OPTS+=-DSOLARIS -DINADDR_NONE=INADDR_ANY -DBSD_COMP
|
|
|
|
OPTS+=-I/usr/local/include -I/opt/sfw/include
|
|
|
|
LDFLAGS+=-L/opt/sfw/lib
|
|
|
|
LIBS+=-lsocket -lnsl
|
|
|
|
endif
|
|
|
|
|
|
|
|
#
|
|
|
|
#here is FreeBSD
|
|
|
|
#
|
|
|
|
ifdef FREEBSD
|
|
|
|
OPTS+=-DLINUX -DFREEBSD -I/usr/X11R6/include
|
|
|
|
SDL_CONFIG?=sdl11-config
|
|
|
|
LDFLAGS+=-L/usr/X11R6/lib
|
|
|
|
LIBS+=-lipx -lkvm
|
|
|
|
endif
|
|
|
|
|
|
|
|
#
|
|
|
|
#here is GP2x (arm-gp2x-linux)
|
|
|
|
#
|
|
|
|
ifdef GP2X
|
|
|
|
PNG_CONFIG?=$(PREFIX)-libpng12-config
|
|
|
|
ifdef STATIC #need a better setting name
|
|
|
|
CFLAGS+=-I$(OPEN2X)/include
|
|
|
|
ifndef NOMIXER
|
|
|
|
LIBS+=-lvorbisidec
|
|
|
|
ifdef MIKMOD
|
|
|
|
LIBS+=-lmikmod
|
|
|
|
endif
|
|
|
|
ifdef SMPEGLIB
|
|
|
|
LIBS+=-lsmpeg
|
|
|
|
LD=$(CXX)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
NONET=1
|
|
|
|
endif
|
|
|
|
ifndef ARCHNAME
|
|
|
|
"error"
|
|
|
|
endif
|
|
|
|
NONX86=1
|
|
|
|
NOHW=1
|
|
|
|
NOHS=1
|
|
|
|
NOMD5=1
|
|
|
|
WFLAGS+=-O0
|
|
|
|
OPTS+=-DGP2X -ffast-math -mcpu=arm920t
|
|
|
|
EXENAME?=SRB2GP2X.gpe
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef NOHW
|
|
|
|
OPTS+=-I/usr/X11R6/include
|
|
|
|
LDFLAGS+=-L/usr/X11R6/lib
|
|
|
|
endif
|
|
|
|
|
|
|
|
# name of the exefile
|
|
|
|
EXENAME?=lsdlsrb2
|