nuclear@90: ksrc = ../../src nuclear@90: nuclear@90: obj = mkfs.o fs.o nuclear@90: dep = $(obj:.o=.d) nuclear@90: bin = mkfs nuclear@90: nuclear@90: CC = gcc nuclear@90: CFLAGS = -pedantic -Wall -g -I$(ksrc) nuclear@90: nuclear@90: $(bin): $(obj) nuclear@90: $(CC) -o $@ $(obj) $(LDFLAGS) nuclear@90: nuclear@90: -include $(dep) nuclear@90: nuclear@90: fs.o: $(ksrc)/fs.c nuclear@90: $(CC) $(CFLAGS) -c $< -o $@ nuclear@90: nuclear@90: %.d: %.c nuclear@90: @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@ nuclear@90: nuclear@90: .PHONY: clean nuclear@90: clean: nuclear@90: rm -f $(obj) $(bin) $(dep)