The make file

This commit is contained in:
cvs
2000-09-13 14:29:25 +00:00
parent 7f80f5fd87
commit 4db9a98810

68
utils/Makefile Normal file
View File

@ -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
#----------------------------------------------------------