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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [sim/] [Makefile] - Blame information for rev 8

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

Line No. Rev Author Line
1 8 hellwig
#
2
# Makefile for ECO32 simulator
3
#
4
 
5
BUILD = ../build
6
 
7
CC = gcc -m32
8
CFLAGS = -g -Wall -I./getline -I/usr/X11R7/include
9
LDFLAGS = -g -L./getline -L/usr/X11R7/lib -Wl,-rpath -Wl,/usr/X11R7/lib
10
LDLIBS = -lgetline -lX11 -lpthread -lm
11
 
12
SRCS = main.c console.c error.c except.c command.c \
13
       instr.c asm.c disasm.c cpu.c mmu.c memory.c \
14
       timer.c dspkbd.c term.c disk.c output.c graph.c
15
OBJS = $(patsubst %.c,%.o,$(SRCS))
16
BIN = sim
17
 
18
.PHONY:         all install clean
19
 
20
all:            $(BIN)
21
 
22
install:        $(BIN)
23
                mkdir -p $(BUILD)/bin
24
                cp $(BIN) $(BUILD)/bin
25
 
26
getline/libgetline.a:
27
                $(MAKE) -C getline
28
 
29
$(BIN):         $(OBJS) getline/libgetline.a
30
                $(CC) $(LDFLAGS) -o $(BIN) $(OBJS) $(LDLIBS)
31
 
32
%.o:            %.c
33
                $(CC) $(CFLAGS) -o $@ -c $<
34
 
35
depend.mak:
36
                $(CC) -MM -MG $(CFLAGS) $(SRCS) > depend.mak
37
 
38
-include depend.mak
39
 
40
clean:
41
                $(MAKE) -C getline clean
42
                rm -f *~ $(OBJS) $(BIN) depend.mak

powered by: WebSVN 2.1.0

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