PSI sics-cvs-psi_pre-ansto

This commit is contained in:
2003-06-13 00:00:00 +00:00
committed by Douglas Clowes
parent 2e3ddfb6c6
commit 3ffd0d8af4
1099 changed files with 318432 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
#----------------------------------------------------------