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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [binutils/] [dof/] [Makefile] - Blame information for rev 201

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

Line No. Rev Author Line
1 7 hellwig
#
2
# Makefile for ECO32 object file dumper
3
#
4
 
5
BUILD = ../../build
6
 
7
CC = gcc -m32
8
CFLAGS = -g -Wall
9
LDFLAGS = -g
10
LDLIBS = -lm
11
 
12
SRCS = dof.c
13
OBJS = $(patsubst %.c,%.o,$(SRCS))
14
BIN = dof
15
 
16
.PHONY:         all install clean
17
 
18
all:            $(BIN)
19
 
20
install:        $(BIN)
21
                mkdir -p $(BUILD)/bin
22
                cp $(BIN) $(BUILD)/bin
23
 
24
$(BIN):         $(OBJS)
25
                $(CC) $(LDFLAGS) -o $(BIN) $(OBJS) $(LDLIBS)
26
 
27
%.o:            %.c
28
                $(CC) $(CFLAGS) -o $@ -c $<
29
 
30
depend.mak:
31 24 hellwig
                $(CC) -MM -MG $(CFLAGS) $(SRCS) >depend.mak
32 7 hellwig
 
33
-include depend.mak
34
 
35
clean:
36
                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.