Admin Panel

#### Start of system configuration section. ####

srcdir =	@srcdir@
VPATH =		@srcdir@

CC =		@CC@
CPP =		@CPP@
AS =		@AS@

AR =		@AR@
RANLIB =	@RANLIB@
AWK =		@AWK@

#### End system configuration section ####

ifneq ($(TARGET),clean)
include ../../sources/math/filelist
endif

CURDIR = $(shell pwd)

OPTIONS=-I$(srcdir)/../headers -DFULL_SPECIFIERS $(CFLAGS)

OBJECTS2=$(OBJECTS) \
         ../nix/assert/__eprintf.o \
         ../nix/stdio/vprintf.o \
         ../nix/stdio/fprintf.o \
         ../nix/stdlib/assert.o \
         ../nix/stdio/vfprintf.o ../nix/stdio/vsprintf.o \
         ../nix/stdio/sprintf.o \
         ../nix/stdio/vsnprintf.o \
         ../nix/stdio/snprintf.o \
         ../nix/stdio/printf.o \
         ../nix/stdio/vsprintf.o \
         ../nix/stdio/scanf.o ../nix/stdio/fscanf.o ../nix/stdio/sscanf.o \
         ../nix/stdio/vscanf.o ../nix/stdio/vsscanf.o stdio/vfscanf.o \
         ../nix/stdio/tmpfile.o ../nix/stdio/tmpnam.o \
         stdio/__vfprintf_total_size.o

SUBDIRS2=$(SUBDIRS) ../nix/assert ../nix/stdio
SUBDIRSP=$(patsubst %,%/.created,$(SUBDIRS2))

REDEF=-D_DOSBase=___DOSBase \
      -D_UtilityBase=___UtilityBase \
      -D_MathIeeeSingBasBase=___MathIeeeSingBasBase \
      -D_MathIeeeSingTransBase=___MathIeeeSingTransBase \
      -D_MathIeeeDoubBasBase=___MathIeeeDoubBasBase \
      -D_MathIeeeDoubTransBase=___MathIeeeDoubTransBase \
      -D_LocaleBase=___LocaleBase

%.o: %.c $(SUBDIRSP)
	$(CC) $(OPTIONS) -c $(filter-out $(SUBDIRSP), $^) -o $*.o

.PHONY: all clean veryclean

all: libm.a

clean:
	-rm -rf $(SUBDIRS)

veryclean:
	-rm -rf *

$(SUBDIRSP):
	mkdir -p $(@D)
	echo "" >$@

libm.a: $(OBJECTS2) ../../sources/math/Makefile ../../sources/math/filelist
	-rm -f $@
	$(AR) -q $@ $(OBJECTS2)
	$(RANLIB) $@
#	echo "\\$$$(V)" >>$@

stdio/__vfprintf_total_size.o: $(SUBDIRSP) $(srcdir)/../nix/stdio/__vfprintf_total_size.c
	$(CC) $(OPTIONS) $^ -c -o stdio/__vfprintf_total_size.o

stdio/vfscanf.o: $(SUBDIRSP) $(srcdir)/../nix/stdio/vfscanf.c
	$(CC) $(OPTIONS) $^ -c -o stdio/vfscanf.o