kern

view fstools/mkfs/Makefile @ 90:7ff2b4971216

started work on the filesystem
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 09 Dec 2011 13:44:15 +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)