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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [binutils/] [ar/] [Makefile] - Blame information for rev 262

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

Line No. Rev Author Line
1 7 hellwig
#
2
# Makefile for ECO32 archiver
3
#
4
 
5
BUILD = ../../build
6
 
7 253 hellwig
CC = gcc
8 7 hellwig
CFLAGS = -g -Wall
9
LDFLAGS = -g
10
LDLIBS = -lm
11
 
12
SRCS = ar.c ranlib.c endian.c
13
OBJS = $(patsubst %.c,%.o,$(SRCS))
14
BIN = ar
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.