kern

view fstools/mkfs/Makefile @ 95:ec62cbe00b55

whatever
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 11 Dec 2011 21:15:35 +0200
parents
children
line source
1 ksrc = ../../src
3 obj = mkfs.o fs.o
4 dep = $(obj:.o=.d)
5 bin = mkfs
7 CC = gcc
8 CFLAGS = -pedantic -Wall -g -I$(ksrc)
10 $(bin): $(obj)
11 $(CC) -o $@ $(obj) $(LDFLAGS)
13 -include $(dep)
15 fs.o: $(ksrc)/fs.c
16 $(CC) $(CFLAGS) -c $< -o $@
18 %.d: %.c
19 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
21 .PHONY: clean
22 clean:
23 rm -f $(obj) $(bin) $(dep)