TAS code. - Fixed communication problems in SerPortServer, mainly with terminator detection. - Added SPS switched motors for TOPSI - Debugged Power-PC histogram memory software for TRICS
71 lines
2.1 KiB
Makefile
71 lines
2.1 KiB
Makefile
#---------------------------------------------------------------------------
|
|
# 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 = linux.i686
|
|
#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
|
|
#----------------------------------------------------------
|