OpenCores
URL https://opencores.org/ocsvn/tms1000/tms1000/trunk

Subversion Repositories tms1000

[/] [tms1000/] [trunk/] [assembler/] [Makefile] - Rev 2

Compare with Previous | Blame | View Log

# Makefile for CASM package

# -----------------------------------------------------------------------------
# You may need to change the following definitions.  In particular you will
# need to remove the -DUSE_TIMER if you don't have the setitimer() system
# call, and you may need to chage X11LIBS and X11INCS if X isn't in /usr/X11.
#
# If you are using a version of Flex later than 2.4.1 you can optionally
# remove the "-DOLD_FLEX" from CFLAGS, resulting in a completely imperceptible
# performance improvement in CASM.
# -----------------------------------------------------------------------------

CC = gcc
CFLAGS = -g -Dstricmp=strcasecmp -DUSE_TIMER -DENTER_KEY_MOD -DOLD_FLEX

YACC = bison
YFLAGS = -d -y

# YACC = yacc
# YFLAGS = -d

LEX = flex

# -----------------------------------------------------------------------------
# You shouldn't have to change anything below this point, but if you do please
# let me know why so I can improve this Makefile.
# -----------------------------------------------------------------------------

PROGRAMS = casm 

HEADERS = casm.h symtab.h xio.h
SOURCES = casm.c casml.l casmy.y symtab.c

OBJECTS = casm.o symtab.o lex.yy.o y.tab.o

INTERMEDIATE = lex.yy.c y.tab.c y.tab.h

all: $(PROGRAMS) 

casm:   $(OBJECTS)
        $(CC) -o $@ $(OBJECTS)

casm.o: casm.c casm.h
        $(CC) -c $(CFLAGS) -o $@ $<

lex.yy.o: lex.yy.c casm.h symtab.h y.tab.h
        $(CC) -c $(CFLAGS) -o $@ $<

lex.yy.c: casml.l
        $(LEX) $(LFLAGS) $<

y.tab.o: y.tab.c casm.h symtab.h
        $(CC) -c $(CFLAGS) -o $@ $<

y.tab.c y.tab.h: casmy.y
        $(YACC) $(YFLAGS) $<

symtab.o: symtab.c symtab.h
        $(CC) -c $(CFLAGS) -o $@ $<

clean:
        rm -f $(PROGRAMS) $(OBJECTS) $(INTERMEDIATE)

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.