# fconfig: File configuration utility
#	note that fconfig needs to be built *before* it can
#	can be configured, due to dependency on it for configuration

CXX = g++
CXXFLAGS = -O2 -Wall -Werror -Wmissing-prototypes -Wstrict-prototypes \
	-Wpointer-arith -Wconversion -Waggregate-return \
	-Wmissing-declarations -Wnested-externs -Wsynth \
	-pedantic

# -Wwrite-strings -Wredundant-decls -Wshadow

# Note: fconfig cannot be a source file, because it is needed
#	for doing any of the configuration, and would cause
#	a loop if included as a source file

TARGETS	+= fconfig 

fconfig: $(SRC)/$(SPATH)fconfig.C
	$(CXX) $(CXXFLAGS) -o fconfig $(SRC)/$(SPATH)fconfig.C
	@strip fconfig 
	@mkdir -p $(BASE)/bin
	@ln -sf $(BASE)/$(SPATH)fconfig $(BASE)/bin
