- Rearranged directory structure for forking out ANSTO

- Refactored site specific stuff into a site module
- PSI specific stuff is now in the PSI directory.
- The old version has been tagged with pre-ansto
This commit is contained in:
cvs
2003-06-20 10:18:47 +00:00
commit 064ec37e9a
271 changed files with 115513 additions and 0 deletions

72
utils/Makefile Normal file
View File

@@ -0,0 +1,72 @@
#---------------------------------------------------------------------------
# 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 = ../bin
#LFLAGS = -L../hardsup
#------------ for Linux
CC = gcc
CFLAGS = -g -I. -I../hardsup -DLinux
BIN = ../bin
LFLAGS = -L../hardsup -L/usr/X11R6/lib
#------------
#----------------------------------------------------------
all: $(BIN)/asynsrv_test \
$(BIN)/el734 \
$(BIN)/el734_test \
$(BIN)/el737 \
$(BIN)/SerPortServer
#----------------------------------------------------------
$(BIN)/SerPortServer: SerPortServer.c
rm -f $(BIN)/SerPortServer
$(CC) $(CFLAGS) -o $(BIN)/SerPortServer \
SerPortServer.c $(LFLAGS) -lhlib -lX11
$(BIN)/asynsrv_test: asynsrv_test.c
rm -f $(BIN)/asynsrv_test
$(CC) $(CFLAGS) -o $(BIN)/asynsrv_test \
asynsrv_test.c $(LFLAGS) -lhlib -lX11
$(BIN)/el734: el734.c
@ echo "el734 needs Motif library. Not yet found on linux"
rm -f $(BIN)/el734
$(CC) $(CFLAGS) -o $(BIN)/el734 \
el734.c $(LFLAGS) -lhlib -lX11 -lXt -lXm
$(BIN)/el734_test: el734_test.c
rm -f $(BIN)/el734_test
$(CC) $(CFLAGS) -o $(BIN)/el734_test \
el734_test.c $(LFLAGS) -lhlib -lX11
$(BIN)/el737: el737.c
@ echo "el737 needs Motif library. Not yet found on linux"
rm -f $(BIN)/el737
$(CC) $(CFLAGS) -I/usr/X11R6/include -o $(BIN)/el737 \
el737.c $(LFLAGS) -lhlib -lXm -lXt -lX11 -lm
#----------------------------------------------------------
clean:
- rm -f *.o
- rm -f $(BIN)/SerPortServer \
$(BIN)/asynsrv_test \
$(BIN)/el734 \
$(BIN)/el734_test \
$(BIN)/el737
#----------------------------------------------------------
.c.o:
$(CC) $(CFLAGS) -c $*.c
#----------------------------------------------------------