# Linux-mips on R3912 hardware.

ARCH = Linux

# if you want shared libraries, change names below to libW.so and
# libWt.so, recompile, install and run ldconfig.
WLIB  = libW.so
WTLIB = libWt.so

# DIRECT8 is the default graphics driver for framebuffer
#DIRECT8 = 1
BMONO   = 1
#PACKEDMONO = 1

# Additional options
# 486: -m486
# 586: -mpentium (egcs)
#
# If you don't mind less debuggable applications, you can move
# -fomit-frame-pointer option from SERVERCFLAGS to BASECFLAGS.

BASECFLAGS	= -pipe -Wall -Wmissing-prototypes -O2 -s -DWTINYSCREEN
SERVERCFLAGS	= -DLINUX_R3912
SERVERLDFLAGS	= -s
#SERVERLIBS	= -ltermcap -lgpm
SERVERLIBS	= 
CLIENTLIBS	= -lW

#CLIENTLIBS	= -lWg -lefence
#CLIENTLIBS	= -L../w2xlib -lW2X -L/usr/X11R6/lib -lX11
#MATHCFLAGS	=
MATHLIB		= -lm

CLIENTLDFLAGS = -s

# This is needed for glibc as it doesn't seem to include crypt() anymore
# Don't build anything with crypt anyway.
#CRYPTLIB	= -lcrypt

# if wterm/wvt shouldnt' set TERMCAP enviroment variable, comment this out
EXPORT_TERMCAP = 1

CC = mipsel-linux-gcc -msoft-float
MAKE = make
RANLIB = mipsel-linux-ranlib
AR = mipsel-linux-ar r
CP = cp
LN = ln
RM = rm -f
CHMOD = chmod
INSTALL = install
INSTALLBIN = install -s -m 755
INSTALLDIRS = install -d

# stuff you want to remove with 'make clean'
JUNK = core *.rej *.orig
