1991-10-25 18:23:32 +00:00
|
|
|
# $Header$
|
|
|
|
|
|
|
|
#PARAMS do not remove this line!
|
|
|
|
|
|
|
|
SRC_DIR = $(SRC_HOME)/fast/driver
|
|
|
|
INCLUDES = -I$(TARGET_HOME)/config
|
|
|
|
CFLAGS = $(COPTIONS) $(INCLUDES)
|
|
|
|
LINTFLAGS = $(LINTOPTIONS) $(INCLUDES)
|
|
|
|
LDFLAGS = $(LDOPTIONS)
|
|
|
|
|
|
|
|
all: afcc afm2 afpc
|
|
|
|
|
|
|
|
install: all
|
|
|
|
cp afcc afm2 afpc $(TARGET_HOME)/bin
|
|
|
|
if [ $(DO_MACHINE_INDEP) = y ] ; \
|
1991-11-05 15:31:14 +00:00
|
|
|
then mk_manpage $(SRC_DIR)/afcc.1 $(TARGET_HOME) ; \
|
|
|
|
mk_manpage $(SRC_DIR)/afpc.1 $(TARGET_HOME) ; \
|
|
|
|
mk_manpage $(SRC_DIR)/afm2.1 $(TARGET_HOME) ; \
|
1991-10-25 18:23:32 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
cmp: all
|
|
|
|
-cmp afcc $(TARGET_HOME)/bin/afcc
|
|
|
|
-cmp afm2 $(TARGET_HOME)/bin/afm2
|
|
|
|
-cmp afpc $(TARGET_HOME)/bin/afpc
|
|
|
|
|
|
|
|
pr:
|
|
|
|
@pr $(SRC_DIR)/proto.make $(SRC_DIR)/driver.c
|
|
|
|
|
|
|
|
opr:
|
|
|
|
make pr | opr
|
|
|
|
|
|
|
|
clean:
|
1991-11-11 13:16:23 +00:00
|
|
|
rm -f *.$(SUF) afcc afm2 afpc Out
|
1991-10-25 18:23:32 +00:00
|
|
|
|
1991-10-29 09:26:46 +00:00
|
|
|
lint:
|
1991-11-11 13:16:23 +00:00
|
|
|
$(LINT) $(LINTFLAGS) -DFCC -D`ack_sys` $(SRC_DIR)/driver.c
|
1991-10-29 09:26:46 +00:00
|
|
|
|
1991-10-25 18:23:32 +00:00
|
|
|
afcc.$(SUF): $(SRC_DIR)/driver.c $(TARGET_HOME)/config/em_path.h
|
|
|
|
$(CC) $(CFLAGS) -c -DFCC -D$(MACH) -D`ack_sys` $(SRC_DIR)/driver.c
|
|
|
|
mv driver.$(SUF) afcc.$(SUF)
|
|
|
|
|
|
|
|
afpc.$(SUF): $(SRC_DIR)/driver.c $(TARGET_HOME)/config/em_path.h
|
|
|
|
$(CC) $(CFLAGS) -c -DFPC -D$(MACH) -D`ack_sys` $(SRC_DIR)/driver.c
|
|
|
|
mv driver.$(SUF) afpc.$(SUF)
|
|
|
|
|
|
|
|
afm2.$(SUF): $(SRC_DIR)/driver.c $(TARGET_HOME)/config/em_path.h
|
|
|
|
$(CC) $(CFLAGS) -c -DFM2 -D$(MACH) -D`ack_sys` $(SRC_DIR)/driver.c
|
|
|
|
mv driver.$(SUF) afm2.$(SUF)
|
|
|
|
|
|
|
|
afcc: afcc.$(SUF)
|
|
|
|
$(CC) $(LDFLAGS) -o afcc afcc.$(SUF)
|
|
|
|
|
|
|
|
afm2: afm2.$(SUF)
|
|
|
|
$(CC) $(LDFLAGS) -o afm2 afm2.$(SUF)
|
|
|
|
|
|
|
|
afpc: afpc.$(SUF)
|
|
|
|
$(CC) $(LDFLAGS) -o afpc afpc.$(SUF)
|