From 4db9a988105ec62dae25fc98d044e35bc55aa64a Mon Sep 17 00:00:00 2001 From: cvs Date: Wed, 13 Sep 2000 14:29:25 +0000 Subject: [PATCH] The make file --- utils/Makefile | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 utils/Makefile diff --git a/utils/Makefile b/utils/Makefile new file mode 100644 index 00000000..aae2743e --- /dev/null +++ b/utils/Makefile @@ -0,0 +1,68 @@ +#--------------------------------------------------------------------------- +# Makefile for the Utilities in the utils directory, +# +# e.g. SerPortServer asynsrv_test +# +# David Maden, Sep-2000 +#-------------------------------------------------------------------------- + +#------------ for DigitalUnix (add -DFORTIFY to CFLAGS for fortified version) +##CC = cc +##CFLAGS = -std -g -warnprotos -I. -I../hardsup +##BIN = osf.axp +##LFLAGS = -L../hardsup +#------------ for Linux +CC = gcc +CFLAGS = -g -I. -I../hardsup +BIN = linux.i686 +LFLAGS = -L../hardsup -L/usr/X11R6/lib +#------------ + +#---------------------------------------------------------- + +all: ../bin/$(BIN)/asynsrv_test \ + ../bin/$(BIN)/el734 \ + ../bin/$(BIN)/el734_test \ + ../bin/$(BIN)/el737 \ + ../bin/$(BIN)/SerPortServer + +#---------------------------------------------------------- + +../bin/$(BIN)/SerPortServer: SerPortServer.c + rm -f ../bin/$(BIN)/SerPortServer + $(CC) $(CFLAGS) -o ../bin/$(BIN)/SerPortServer \ + SerPortServer.c $(LFLAGS) -lhlib -lX11 + +../bin/$(BIN)/asynsrv_test: asynsrv_test.c + rm -f ../bin/$(BIN)/asynsrv_test + $(CC) $(CFLAGS) -o ../bin/$(BIN)/asynsrv_test \ + asynsrv_test.c $(LFLAGS) -lhlib -lX11 + +../bin/$(BIN)/el734: el734.c + rm -f ../bin/$(BIN)/el734 + $(CC) $(CFLAGS) -o ../bin/$(BIN)/el734 \ + el734.c $(LFLAGS) -lhlib -lX11 + +../bin/$(BIN)/el734_test: el734_test.c + rm -f ../bin/$(BIN)/el734_test + $(CC) $(CFLAGS) -o ../bin/$(BIN)/el734_test \ + el734_test.c $(LFLAGS) -lhlib -lX11 + +../bin/$(BIN)/el737: el737.c + rm -f ../bin/$(BIN)/el737 + $(CC) $(CFLAGS) -o ../bin/$(BIN)/el737 \ + el737.c $(LFLAGS) -lhlib -lX11 + +#---------------------------------------------------------- + +clean: + - rm -f *.o + - rm -f ../bin/$(BIN)/SerPortServer \ + ../bin/$(BIN)/asynsrv_test \ + ../bin/$(BIN)/el734 \ + ../bin/$(BIN)/el734_test \ + ../bin/$(BIN)/el737 +#---------------------------------------------------------- +.c.o: + $(CC) $(CFLAGS) -c $*.c +#----------------------------------------------------------