URL
https://opencores.org/ocsvn/eco32/eco32/trunk
[/] [eco32/] [trunk/] [binutils/] [ar/] [Makefile] - Diff between revs 24 and 253
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 24 |
Rev 253 |
#
|
#
|
# Makefile for ECO32 archiver
|
# Makefile for ECO32 archiver
|
#
|
#
|
|
|
BUILD = ../../build
|
BUILD = ../../build
|
|
|
CC = gcc -m32
|
CC = gcc
|
CFLAGS = -g -Wall
|
CFLAGS = -g -Wall
|
LDFLAGS = -g
|
LDFLAGS = -g
|
LDLIBS = -lm
|
LDLIBS = -lm
|
|
|
SRCS = ar.c ranlib.c endian.c
|
SRCS = ar.c ranlib.c endian.c
|
OBJS = $(patsubst %.c,%.o,$(SRCS))
|
OBJS = $(patsubst %.c,%.o,$(SRCS))
|
BIN = ar
|
BIN = ar
|
|
|
.PHONY: all install clean
|
.PHONY: all install clean
|
|
|
all: $(BIN)
|
all: $(BIN)
|
|
|
install: $(BIN)
|
install: $(BIN)
|
mkdir -p $(BUILD)/bin
|
mkdir -p $(BUILD)/bin
|
cp $(BIN) $(BUILD)/bin
|
cp $(BIN) $(BUILD)/bin
|
|
|
$(BIN): $(OBJS)
|
$(BIN): $(OBJS)
|
$(CC) $(LDFLAGS) -o $(BIN) $(OBJS) $(LDLIBS)
|
$(CC) $(LDFLAGS) -o $(BIN) $(OBJS) $(LDLIBS)
|
|
|
%.o: %.c
|
%.o: %.c
|
$(CC) $(CFLAGS) -o $@ -c $<
|
$(CC) $(CFLAGS) -o $@ -c $<
|
|
|
depend.mak:
|
depend.mak:
|
$(CC) -MM -MG $(CFLAGS) $(SRCS) >depend.mak
|
$(CC) -MM -MG $(CFLAGS) $(SRCS) >depend.mak
|
|
|
-include depend.mak
|
-include depend.mak
|
|
|
clean:
|
clean:
|
rm -f *~ $(OBJS) $(BIN) depend.mak
|
rm -f *~ $(OBJS) $(BIN) depend.mak
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.