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

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [Open8 Tools/] [open8_src/] [open8_as/] [makefile] - Blame information for rev 198

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 178 jshamlet
CC=cc
2
LD=cc
3
 
4
CFLAGS= -c
5
LDFLAGS = -lm
6
WLAFLAGS = $(CFLAGS) -DUNIX -Dv8urisc
7
 
8
CFILES = main.c parse.c include_file.c pass_1.c pass_2.c pass_3.c pass_4.c stack.c listfile.c
9
HFILES = main.h parse.h include_file.h pass_1.h pass_2.h pass_3.h pass_4.h stack.h listfile.h defines.h
10
OFILES = main.o parse.o include_file.o pass_1.o pass_2.o pass_3.o pass_4.o stack.o listfile.o
11
 
12
 
13
all: $(OFILES) makefile
14
        $(LD) $(OFILES) $(LDFLAGS) -o open8_as ; strip open8_as || true
15
 
16
main.o: main.c defines.h main.h makefile
17
        $(CC) $(WLAFLAGS) main.c
18
 
19
parse.o: parse.c defines.h parse.h makefile
20
        $(CC) $(WLAFLAGS) parse.c
21
 
22
include_file.o: include_file.c defines.h include_file.h makefile
23
        $(CC) $(WLAFLAGS) include_file.c
24
 
25
pass_1.o: pass_1.c defines.h pass_1.h parse.h makefile opcodes_v8urisc.c
26
        $(CC) $(WLAFLAGS) pass_1.c
27
 
28
pass_2.o: pass_2.c defines.h pass_2.h makefile
29
        $(CC) $(WLAFLAGS) pass_2.c
30
 
31
pass_3.o: pass_3.c defines.h pass_3.h makefile
32
        $(CC) $(WLAFLAGS) pass_3.c
33
 
34
pass_4.o: pass_4.c defines.h pass_4.h makefile
35
        $(CC) $(WLAFLAGS) pass_4.c
36
 
37
stack.o: stack.c defines.h stack.h makefile
38
        $(CC) $(WLAFLAGS) stack.c
39
 
40
listfile.o: listfile.c defines.h makefile
41
        $(CC) $(WLAFLAGS) listfile.c
42
 
43
 
44
$(OFILES): $(HFILES)
45
 
46
 
47
clean:
48
        rm -f $(OFILES) core *~ open8_as
49
 
50
install:
51
        make ; cp open8_as /usr/local/bin

powered by: WebSVN 2.1.0

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