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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [disk/] [tools/] [shpart/] [Makefile] - Blame information for rev 25

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

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