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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [disk/] [tools/] [mkdisk/] [Makefile] - Blame information for rev 273

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

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