changed makefile structure M.Z.

This commit is contained in:
cvs
2003-10-06 12:40:04 +00:00
parent d542f758b0
commit d62d2902ac
7 changed files with 112 additions and 74 deletions

50
utils/make_gen Normal file
View File

@ -0,0 +1,50 @@
#---------------------------------------------------------------------------
# Makefile for the Utilities in the utils directory,
#
# e.g. SerPortServer asynsrv_test
#
# David Maden, Sep-2000
# M.Z. Oct-2003 (system independent version)
#--------------------------------------------------------------------------
.SUFFIXES:
.SUFFIXES: .c .o
VPATH=$(SRC)
ROOT=../..
HLIB=../hardsup/libhlib.a
LIBS = -L/usr/X11R6/lib -lX11
#----------------------------------------------------------
all: asynsrv_test SerPortServer $(ALPHA)
#----------------------------------------------------------
SerPortServer: SerPortServer.c $(HLIB)
$(CC) $(CFLAGS) -o $@ $Q $(LIBS)
asynsrv_test: asynsrv_test.c $(HLIB)
$(CC) $(CFLAGS) -o $@ $Q $(LIBS)
el734: el734.c $(HLIB)
# @ echo "el734 needs Motif library. Not yet found on linux"
$(CC) $(CFLAGS) -o $@ $Q $(LIBS) -lXt -lXm
el734_test: el734_test.c $(HLIB)
$(CC) $(CFLAGS) -o $@ $Q $(LIBS)
el737: el737.c $(HLIB)
# @ echo "el737 needs Motif library. Not yet found on linux"
$(CC) $(CFLAGS) -o $@ $Q $(LIBS) -lXm -lXt -lm
#----------------------------------------------------------
clean:
- rm -f *.o
- rm -f SerPortServer \
asynsrv_test \
el734 \
el734_test \
el737
#----------------------------------------------------------