changed makefile structure M.Z.
This commit is contained in:
50
utils/make_gen
Normal file
50
utils/make_gen
Normal 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
|
||||
|
||||
#----------------------------------------------------------
|
Reference in New Issue
Block a user