Make file for SinqHM

This commit is contained in:
cvs
2000-10-24 11:40:30 +00:00
parent fb8558864a
commit 4d2543f87c

77
sinqhm/Makefile Normal file
View File

@ -0,0 +1,77 @@
#---------------------------------------------------------------------------
# Makefile for the SINQ hist mem client Programs in the sinqhm directory.
# These are:
# sinqhm_ctrl
# sinqhm_client
# sinqhm_bootutil_client
# lwl_client
#
# David Maden, Oct-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 -DLINUX
BIN = linux.i686
LFLAGS = -L../hardsup -L/usr/X11R6/lib
#------------
#----------------------------------------------------------
dflt:
@ echo
@ echo " This directory contains SINQ histogram memory software."
@ echo " The make file will make the histogram memory client programs."
@ echo " To make them, you must specify:"
@ echo
@ echo " make all"
@ echo
#----------------------------------------------------------
all: $(HOME)/bin/$(BIN)/sinqhm_ctrl \
$(HOME)/bin/$(BIN)/sinqhm_client \
$(HOME)/bin/$(BIN)/sinqhm_bootutil_client \
$(HOME)/bin/$(BIN)/lwl_client
#----------------------------------------------------------
$(HOME)/bin/$(BIN)/sinqhm_ctrl: SinqHM_def.h sinqhm_ctrl.c
@ rm -f $(HOME)/bin/$(BIN)/sinqhm_ctrl.old
@ if test -f $(HOME)/bin/$(BIN)/sinqhm_ctrl; then \
mv -f $(HOME)/bin/$(BIN)/sinqhm_ctrl \
$(HOME)/bin/$(BIN)/sinqhm_ctrl.old; \
fi
$(CC) $(CFLAGS) -o $(HOME)/bin/$(BIN)/sinqhm_ctrl \
sinqhm_ctrl.c $(LFLAGS) -lhlib -lX11
$(HOME)/bin/$(BIN)/sinqhm_client:
@ echo "sinqhm_client not yet available."
$(HOME)/bin/$(BIN)/sinqhm_bootutil_client:
@ echo "sinqhm_bootutil_client not yet available."
$(HOME)/bin/$(BIN)/lwl_client:
@ echo "lwl_client not yet available."
#----------------------------------------------------------
clean:
- rm -f *.o
- rm -f $(HOME)/bin/$(BIN)/sinqhm_ctrl \
$(HOME)/bin/$(BIN)/sinqhm_client \
$(HOME)/bin/$(BIN)/sinqhm_bootutil_client \
$(HOME)/bin/$(BIN)/lwl_client
- rm -f $(HOME)/bin/$(BIN)/sinqhm_ctrl.old \
$(HOME)/bin/$(BIN)/sinqhm_client.old \
$(HOME)/bin/$(BIN)/sinqhm_bootutil_client.old \
$(HOME)/bin/$(BIN)/lwl_client.old
#----------------------------------------------------------
.c.o:
$(CC) $(CFLAGS) -c $*.c
#----------------------------------------------------------