Add experimental target to Makefile

f3probe, and any other future f3 application that isn't marked
as stable, will only compile with target experimental.
This commit is contained in:
Michel Machado 2014-08-12 08:14:04 -04:00
parent 55d201792c
commit 2f10f2c068

View File

@ -2,8 +2,10 @@ CC ?= gcc
CFLAGS += -std=c99 -Wall -Wextra -pedantic -MMD
TARGETS = f3write f3read
EXPERIMENTAL_TARGETS = f3probe
all: $(TARGETS)
experimental: $(EXPERIMENTAL_TARGETS)
f3write: utils.o f3write.o
$(CC) -o $@ $^ -lm
@ -11,9 +13,12 @@ f3write: utils.o f3write.o
f3read: utils.o f3read.o
$(CC) -o $@ $^
f3probe: f3probe.o
$(CC) -o $@ $^
-include *.d
PHONY: clean
clean:
rm -f *.o *.d $(TARGETS)
rm -f *.o *.d $(TARGETS) $(EXPERIMENTAL_TARGETS)