- 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:
72
utils/Makefile
Normal file
72
utils/Makefile
Normal 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
|
||||
#----------------------------------------------------------
|
||||
Reference in New Issue
Block a user