kern

view fstools/mkfs/Makefile @ 91:f83f50c17c3b

continuing with the fs added strtol and strstr to klibc
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 09 Dec 2011 15:29:54 +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)