kern

annotate fstools/mkfs/Makefile @ 98:921a264297a4

merged the filesystem stuff
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 17 Apr 2014 17:03:30 +0300
parents
children
rev   line source
nuclear@90 1 ksrc = ../../src
nuclear@90 2
nuclear@90 3 obj = mkfs.o fs.o
nuclear@90 4 dep = $(obj:.o=.d)
nuclear@90 5 bin = mkfs
nuclear@90 6
nuclear@90 7 CC = gcc
nuclear@90 8 CFLAGS = -pedantic -Wall -g -I$(ksrc)
nuclear@90 9
nuclear@90 10 $(bin): $(obj)
nuclear@90 11 $(CC) -o $@ $(obj) $(LDFLAGS)
nuclear@90 12
nuclear@90 13 -include $(dep)
nuclear@90 14
nuclear@90 15 fs.o: $(ksrc)/fs.c
nuclear@90 16 $(CC) $(CFLAGS) -c $< -o $@
nuclear@90 17
nuclear@90 18 %.d: %.c
nuclear@90 19 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
nuclear@90 20
nuclear@90 21 .PHONY: clean
nuclear@90 22 clean:
nuclear@90 23 rm -f $(obj) $(bin) $(dep)