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

Subversion Repositories tms1000

[/] [tms1000/] [trunk/] [assembler/] [Makefile] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 nand_gates
# Makefile for CASM package
2
 
3
# -----------------------------------------------------------------------------
4
# You may need to change the following definitions.  In particular you will
5
# need to remove the -DUSE_TIMER if you don't have the setitimer() system
6
# call, and you may need to chage X11LIBS and X11INCS if X isn't in /usr/X11.
7
#
8
# If you are using a version of Flex later than 2.4.1 you can optionally
9
# remove the "-DOLD_FLEX" from CFLAGS, resulting in a completely imperceptible
10
# performance improvement in CASM.
11
# -----------------------------------------------------------------------------
12
 
13
CC = gcc
14
CFLAGS = -g -Dstricmp=strcasecmp -DUSE_TIMER -DENTER_KEY_MOD -DOLD_FLEX
15
 
16
YACC = bison
17
YFLAGS = -d -y
18
 
19
# YACC = yacc
20
# YFLAGS = -d
21
 
22
LEX = flex
23
 
24
# -----------------------------------------------------------------------------
25
# You shouldn't have to change anything below this point, but if you do please
26
# let me know why so I can improve this Makefile.
27
# -----------------------------------------------------------------------------
28
 
29
PROGRAMS = casm
30
 
31
HEADERS = casm.h symtab.h xio.h
32
SOURCES = casm.c casml.l casmy.y symtab.c
33
 
34
OBJECTS = casm.o symtab.o lex.yy.o y.tab.o
35
 
36
INTERMEDIATE = lex.yy.c y.tab.c y.tab.h
37
 
38
all: $(PROGRAMS)
39
 
40
casm:   $(OBJECTS)
41
        $(CC) -o $@ $(OBJECTS)
42
 
43
casm.o: casm.c casm.h
44
        $(CC) -c $(CFLAGS) -o $@ $<
45
 
46
lex.yy.o: lex.yy.c casm.h symtab.h y.tab.h
47
        $(CC) -c $(CFLAGS) -o $@ $<
48
 
49
lex.yy.c: casml.l
50
        $(LEX) $(LFLAGS) $<
51
 
52
y.tab.o: y.tab.c casm.h symtab.h
53
        $(CC) -c $(CFLAGS) -o $@ $<
54
 
55
y.tab.c y.tab.h: casmy.y
56
        $(YACC) $(YFLAGS) $<
57
 
58
symtab.o: symtab.c symtab.h
59
        $(CC) -c $(CFLAGS) -o $@ $<
60
 
61
clean:
62
        rm -f $(PROGRAMS) $(OBJECTS) $(INTERMEDIATE)

powered by: WebSVN 2.1.0

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