[Bio] / smc / makefile.bcc Repository:
ViewVC logotype

View of /smc/makefile.bcc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (download) (annotate) (vendor branch)
Thu Aug 21 17:00:03 2003 UTC (16 years, 2 months ago) by efrank
Branch: MAIN, oma-04Jun1993
CVS Tags: anl000, HEAD
Changes since 1.1: +0 -0 lines
State machine compiler from Bob Marting (R. C. Martin) at Object Mentor Associates.
Has a few small compilation fixes.

We have this code without explicit permission.  We ar evaluating extensions.
Do not distribute..but I think we're consistent with its usage requirements

#$id$
#-----------------------------------------------
# This makefile is based on MKS make, yacc and lex
# and Borland C++ 3.1
#
PROGRAM		  = smc.exe
CPPFLAGS      = 
LIB_PATHS     = 
CFLAGS        = -v -ml
YACCFILE      = smy
LEXFILE       =	sml
LEXFILE.c     =	$(LEXFILE:.l=.c)
LIBS          = clyacc.lib cllex.lib

SOURCES = sm.c $(LEXFILE).c $(YACCFILE).c
OBJECTS = $(SOURCES:.c=.obj)

################################################################

.KEEP_STATE :
all : smc stripper

$(PROGRAM) : $(OBJECTS)
	bcc $(CFLAGS) -Lc:\mks\lib $(LDFLAGS) $(OBJECTS) $(LIBS)
	mv sm.exe $(PROGRAM)

$(LEXFILE).c : $(LEXFILE).l $(YACCFILE).h
	lex $(LEXFILE).l 
	mv lex_yy.c $(LEXFILE).c

$(LEXFILE).obj : $(LEXFILE).c
	bcc -c $(CFLAGS) $(LEXFILE).c 

$(YACCFILE).obj : $(YACCFILE).c
	bcc -c $(CFLAGS) $(YACCFILE).c

$(YACCFILE).c + $(YACCFILE).h : $(YACCFILE).y
	yacc -d $(YACCFILE).y
	mv ytab.c $(YACCFILE).c
	mv ytab.h $(YACCFILE).h

stripper : stripper.obj stripFSM.obj stripFSM.h 
	bcc $(CFLAGS) stripper.obj stripFSM.obj 

stripper.obj : stripFSM.h

stripFSM.h stripFSM.cpp : stripFSM.sm smc
	smc <stripFSM.sm
	mv stripFSM.cc stripFSM.cpp




MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3