# This is a generic system.mk file for # # Autoconfig done by: Kurt Siegl <007@netrek.org> # # Directories: # LIBDIR - where the lib files will go (.sysdef, .motd, etc) # XTREKDIR - root src dir # XTREKOWNER - Owner of the game XTREKDIR=@srcdir@ prefix=@prefix@ exec_prefix=@exec_prefix@ LIBDIR=@libdir@ BINDIR=@bindir@ SYSCONFDIR=@sysconfdir@ LOCALSTATEDIR=@localstatedir@ XTREKOWNER=@LOGNAME@ PORT=-DPORT=2592 # Some systems dont have install so you may need to use cp instead # A script call install in the root dir is also provided but isn't # very robust. To use this put the full path SHELL=/bin/sh INSTALL=@INSTALL@ INSTALLPROG=@INSTALL_PROGRAM@ INSTALLDATA=@INSTALL_DATA@ # Compiler: # NOTE: many systems' /bin/cc may choke on much of the code in # ntserv/ use with # caution! CC=@CC@ CPP=@CPP@ CPPFLAGS=@CPPFLAGS@ LN=@LN_S@ LDFLAGS=@LDFLAGS@ #LINKFLAGS = -s -N LINKFLAGS=@LDFLAGS@ # Compile in parallel # PMAKE = & # compile in parallel with gnu's parallel make! # MAKE = gmake -j 8 @SET_MAKE@ # SysV defines: # Use only -lm (EXTRALIBS) if you're not on SysV EXTRALIBS=$(LINKFLAGS) @LIBS@ LIBCRYPT=@LIBCRYPT@ LIBCURSES=@LIBCURSES@ LIBTERMCAP=@LIBTERMCAP@ # Some systems need X11R5 in the include path # Comment out if you don't need this # EXTRAINCS=-I/usr/local/X11R5/include # NETREK_INCLUDES = -I../ntserv -I@srcdir@/../ntserv # # Some systems don't have strdup() or random() # Comment out if you have strdup() and random() #STRDUPC = @srcdir@/strdup.c @srcdir@/random.c #STRDUPO = strdup.o random.o RANDOMO=@LIBOBJS@ # Location of X include files if not standard # Use -I X11INCLUDE=@XINCLUDES@ # Name of X libraries (xsg only) # Put -L before library if non-standard location. X11LIB=@XLIBSW@ # GNU MP stuff GNUMP_INC=@GNUMPINC@ GNUMP_LIB=@GNUMPLIB@ # RSA stuff RSA_FLAGS=@NORSA@-DRSA RSA_OBJS=@NORSA@rsa_key.o RSA_SRC=@NORSA@rsa_key.c RSA_INCS=@NORSA@@MPINC@ RSA_LIB=@NORSA@@RSALIB@ @MPLIB@ EXTRAFLAGS=$(CPPFLAGS) FLAGS=@CFLAGS@ -Wall $(EXTRAFLAGS) $(RSA_FLAGS)