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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [disk/] [tools/] [mkpart/] [Makefile] - Rev 258

Compare with Previous | Blame | View Log

#
# Makefile for mkpart utility
#

BUILD = ../../../build

CC = gcc
CFLAGS = -g -Wall
LDFLAGS = -g
LDLIBS = -lm

SRCS = mkpart.c
OBJS = $(patsubst %.c,%.o,$(SRCS))
BIN = mkpart

.PHONY:         all install clean

all:            $(BIN)

install:        $(BIN)
                mkdir -p $(BUILD)/bin
                cp $(BIN) $(BUILD)/bin
                mkdir -p $(BUILD)/run
                cp disk.part $(BUILD)/run

$(BIN):         $(OBJS)
                $(CC) $(LDFLAGS) -o $(BIN) $(OBJS) $(LDLIBS)

%.o:            %.c
                $(CC) $(CFLAGS) -o $@ -c $<

depend.mak:
                $(CC) -MM -MG $(CFLAGS) $(SRCS) >depend.mak

-include depend.mak

clean:
                rm -f *~ $(OBJS) $(BIN) depend.mak

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.