[BACK]Return to Imakefile CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / parse

File: [local] / OpenXM_contrib2 / asir2000 / parse / Attic / Imakefile (download)

Revision 1.7, Tue Dec 25 02:37:22 2001 UTC (22 years, 5 months ago) by noro
Branch: MAIN
Changes since 1.6: +4 -2 lines

Modifications to support cygwin.

/*
 * Copyright (c) 1994-2000 FUJITSU LABORATORIES LIMITED 
 * All rights reserved.  
 *
 * $OpenXM: OpenXM_contrib2/asir2000/parse/Imakefile,v 1.7 2001/12/25 02:37:22 noro Exp $
 */
#include "../include/Risa.tmpl"

SRCS = glob.c parser.c kwd.c parse.y lex.c debug.c\
	eval.c arith.c function.c load.c util.c\
	pvar.c struct.c puref.c comp.c main.c  xdeb.c  evall.c\
	quote.c

OBJS = glob.o parser.o kwd.o y.tab.o lex.o debug.o\
	eval.o arith.o function.o load.o util.o\
	pvar.o struct.o puref.o comp.o xdeb.o evall.o\
	quote.o

HEADERS = comp.h cpp.h parse.h w_stdio.h

AllTarget(y.tab.c libparse.a main.o umain.o)
NormalLibraryTarget(parse,$(OBJS))
DependTarget()
#if 0
SpecialObjectRule(load.o,NullParameter,-DASIR_LIBDIR=\"$(ASIR_LIBDIR)\")
#else
load.o: load.c
	$(CC) -c $(CFLAGS) -DASIR_LIBDIR=\"$(ASIR_LIBDIR)\" $*.c
#endif

#if !defined(cygwinArchitecture)
y.tab.c y.tab.h: $(TOP)/include/Risa.tmpl
y.tab.h y.tab.c: parse.y
	yacc -d parse.y
#endif

umain.o: main.c
	$(CC) -c $(CFLAGS) -DUINIT main.c -o umain.o

#if 0
y.tab.o:
	cc -c -O2 -DYYMAXDEPTH=500 $(INCLUDES) $(DEFINES) $*.c
#endif

glob.o lex.o debug.o main.o umain.o: $(TOP)/include/Risa.tmpl
lex.o kwd.o: y.tab.h

install-include::
	MakeDir($(ASIR_INCDIR))
	-$(CP) $(HEADERS) $(ASIR_INCDIR)