kern

view fstools/mkfs/Makefile @ 92:b4264d173aae

fixed the readme file
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 17 Apr 2014 12:30:02 +0300
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)