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] - Rev 307

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

CC=gcc
LD=gcc

CFLAGS= -c
LDFLAGS = -lm
WLAFLAGS = $(CFLAGS) -DUNIX -Dv8urisc

CFILES = main.c parse.c include_file.c pass_1.c pass_2.c pass_3.c pass_4.c stack.c listfile.c
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
OFILES = main.o parse.o include_file.o pass_1.o pass_2.o pass_3.o pass_4.o stack.o listfile.o


all: $(OFILES) makefile
        $(LD) $(OFILES) $(LDFLAGS) -o open8_as

main.o: main.c defines.h main.h makefile
        $(CC) $(WLAFLAGS) main.c

parse.o: parse.c defines.h parse.h makefile
        $(CC) $(WLAFLAGS) parse.c

include_file.o: include_file.c defines.h include_file.h makefile
        $(CC) $(WLAFLAGS) include_file.c

pass_1.o: pass_1.c defines.h pass_1.h parse.h makefile opcodes_v8urisc.c
        $(CC) $(WLAFLAGS) pass_1.c

pass_2.o: pass_2.c defines.h pass_2.h makefile
        $(CC) $(WLAFLAGS) pass_2.c

pass_3.o: pass_3.c defines.h pass_3.h makefile
        $(CC) $(WLAFLAGS) pass_3.c

pass_4.o: pass_4.c defines.h pass_4.h makefile
        $(CC) $(WLAFLAGS) pass_4.c

stack.o: stack.c defines.h stack.h makefile
        $(CC) $(WLAFLAGS) stack.c

listfile.o: listfile.c defines.h makefile
        $(CC) $(WLAFLAGS) listfile.c


$(OFILES): $(HFILES)


clean:
        del $(OFILES) core *~ open8_as

install:
        make ; cp open8_as /usr/local/bin

Go to most recent revision | 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.