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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [disk/] [tools/] [mkpart/] [Makefile] - Blame information for rev 67

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

Line No. Rev Author Line
1 17 hellwig
#
2
# Makefile for mkpart utility
3
#
4
 
5
BUILD = ../../../build
6
 
7
CC = gcc -m32
8
CFLAGS = -g -Wall
9
LDFLAGS = -g
10
LDLIBS = -lm
11
 
12
SRCS = mkpart.c
13
OBJS = $(patsubst %.c,%.o,$(SRCS))
14
BIN = mkpart
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
                mkdir -p $(BUILD)/run
24
                cp disk.part $(BUILD)/run
25
 
26
$(BIN):         $(OBJS)
27
                $(CC) $(LDFLAGS) -o $(BIN) $(OBJS) $(LDLIBS)
28
 
29
%.o:            %.c
30
                $(CC) $(CFLAGS) -o $@ -c $<
31
 
32
depend.mak:
33 24 hellwig
                $(CC) -MM -MG $(CFLAGS) $(SRCS) >depend.mak
34 17 hellwig
 
35
-include depend.mak
36
 
37
clean:
38
                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.