# open source nserver. # Authors: # Sean Billings (syrinx@globalnet.co.uk) 27/03/00 updated 20/07/2001 # Contributors: # Jan Kratchovil (Serial Comms Advice) # Marcus Groeber (Protocol Advice) # Markus Almroth (FreeBSD fixes) # Michael Kukat (Sun Patch) # Panu Matilainen (fixcase patch) # Ciaran Anscomb (SUN patch for fixcase) # Serial Device NOKIA_PORT = "/dev/cuaa0" #NOKIA_PORT = "/dev/ttyb" # an example SUN device NOKIA_SPEED = 19200 # Operating System (SUN/SGI/LINUX/OS2/BSD): # Only tested so far with the below, let me know if you have a new one OPSYS = BSD #OPSYS = BSD #OPSYS = SUN # C compiler: #CC = gcc # C flags: FLAGS = -fno-common -D$(OPSYS) '-DDEFAULT_PORT=$(NOKIA_PORT)' -DDEFAULT_SPEED=$(NOKIA_SPEED) ifeq ($(OPSYS),SUN) CFLAGS = $(FLAGS) -L/usr/ucblib/ -lucb -I/usr/include -I/usr/ucbinclude else CFLAGS = $(FLAGS) endif # Object files: OBJ = crc.o charmap.o nserver.o # Make: all: nserver nserver: $(OBJ) $(CC) $(CFLAGS) -o nserver $(OBJ) # Header file dependencies: nserver.o: nserver.h crc.o: crc.h charmap.o: charmap.h # Make clean clean: rm -f *.o core