summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.deps.mk1229
-rw-r--r--.gitmodules8
-rw-r--r--.headers.mk1003
-rwxr-xr-xmkmf.sh15
m---------src/9899-1990 (renamed from std/9899-1990)0
m---------src/9899-1990-AMD1 (renamed from std/9899-1990-AMD1)0
m---------src/POSIX.1-1988 (renamed from std/POSIX.1-1988)0
m---------src/POSIX.1-1990 (renamed from std/POSIX.1-1990)0
8 files changed, 1975 insertions, 280 deletions
diff --git a/.deps.mk b/.deps.mk
new file mode 100644
index 00000000..3b32015e
--- /dev/null
+++ b/.deps.mk
@@ -0,0 +1,1229 @@
+.POSIX:
+
+default: all
+
+include config.mk
+
+INCLUDES=-I$(INCDIR) -I. -Inonstd/stubs
+CFLAGS=$(INCLUDES) -g -fno-builtin -nostdinc -nostdlib -nodefaultlibs -Werror -Wall -Wextra -fPIC
+
+libc_OBJS = $(OBJDIR)/libc.o $(OBJDIR)/x86-64.o \
+ $(OBJDIR)/isalnum.o \
+ $(OBJDIR)/isalpha.o \
+ $(OBJDIR)/iscntrl.o \
+ $(OBJDIR)/isdigit.o \
+ $(OBJDIR)/isgraph.o \
+ $(OBJDIR)/islower.o \
+ $(OBJDIR)/isprint.o \
+ $(OBJDIR)/ispunct.o \
+ $(OBJDIR)/isspace.o \
+ $(OBJDIR)/isupper.o \
+ $(OBJDIR)/isxdigit.o \
+ $(OBJDIR)/tolower.o \
+ $(OBJDIR)/toupper.o \
+ $(OBJDIR)/localeconv.o \
+ $(OBJDIR)/setlocale.o \
+ $(OBJDIR)/longjmp.o \
+ $(OBJDIR)/setjmp.o \
+ $(OBJDIR)/raise.o \
+ $(OBJDIR)/signal.o \
+ $(OBJDIR)/clearerr.o \
+ $(OBJDIR)/fclose.o \
+ $(OBJDIR)/feof.o \
+ $(OBJDIR)/ferror.o \
+ $(OBJDIR)/fflush.o \
+ $(OBJDIR)/fgetc.o \
+ $(OBJDIR)/fgetpos.o \
+ $(OBJDIR)/fgets.o \
+ $(OBJDIR)/fopen.o \
+ $(OBJDIR)/fprintf.o \
+ $(OBJDIR)/fputc.o \
+ $(OBJDIR)/fputs.o \
+ $(OBJDIR)/fread.o \
+ $(OBJDIR)/freopen.o \
+ $(OBJDIR)/fscanf.o \
+ $(OBJDIR)/fseek.o \
+ $(OBJDIR)/fsetpos.o \
+ $(OBJDIR)/ftell.o \
+ $(OBJDIR)/fwrite.o \
+ $(OBJDIR)/getc.o \
+ $(OBJDIR)/getchar.o \
+ $(OBJDIR)/gets.o \
+ $(OBJDIR)/perror.o \
+ $(OBJDIR)/printf.o \
+ $(OBJDIR)/putc.o \
+ $(OBJDIR)/putchar.o \
+ $(OBJDIR)/puts.o \
+ $(OBJDIR)/remove.o \
+ $(OBJDIR)/rename.o \
+ $(OBJDIR)/rewind.o \
+ $(OBJDIR)/scanf.o \
+ $(OBJDIR)/setbuf.o \
+ $(OBJDIR)/setvbuf.o \
+ $(OBJDIR)/sprintf.o \
+ $(OBJDIR)/sscanf.o \
+ $(OBJDIR)/tmpfile.o \
+ $(OBJDIR)/tmpnam.o \
+ $(OBJDIR)/ungetc.o \
+ $(OBJDIR)/vfprintf.o \
+ $(OBJDIR)/vprintf.o \
+ $(OBJDIR)/vsprintf.o \
+ $(OBJDIR)/abort.o \
+ $(OBJDIR)/abs.o \
+ $(OBJDIR)/atexit.o \
+ $(OBJDIR)/atof.o \
+ $(OBJDIR)/atoi.o \
+ $(OBJDIR)/atol.o \
+ $(OBJDIR)/bsearch.o \
+ $(OBJDIR)/calloc.o \
+ $(OBJDIR)/div.o \
+ $(OBJDIR)/exit.o \
+ $(OBJDIR)/free.o \
+ $(OBJDIR)/getenv.o \
+ $(OBJDIR)/labs.o \
+ $(OBJDIR)/ldiv.o \
+ $(OBJDIR)/malloc.o \
+ $(OBJDIR)/mblen.o \
+ $(OBJDIR)/mbstowcs.o \
+ $(OBJDIR)/mbtowc.o \
+ $(OBJDIR)/qsort.o \
+ $(OBJDIR)/rand.o \
+ $(OBJDIR)/realloc.o \
+ $(OBJDIR)/srand.o \
+ $(OBJDIR)/strtod.o \
+ $(OBJDIR)/strtol.o \
+ $(OBJDIR)/strtoul.o \
+ $(OBJDIR)/system.o \
+ $(OBJDIR)/wcstombs.o \
+ $(OBJDIR)/wctomb.o \
+ $(OBJDIR)/memchr.o \
+ $(OBJDIR)/memcmp.o \
+ $(OBJDIR)/memcpy.o \
+ $(OBJDIR)/memmove.o \
+ $(OBJDIR)/memset.o \
+ $(OBJDIR)/strcat.o \
+ $(OBJDIR)/strchr.o \
+ $(OBJDIR)/strcmp.o \
+ $(OBJDIR)/strcoll.o \
+ $(OBJDIR)/strcpy.o \
+ $(OBJDIR)/strcspn.o \
+ $(OBJDIR)/strerror.o \
+ $(OBJDIR)/strlen.o \
+ $(OBJDIR)/strncat.o \
+ $(OBJDIR)/strncmp.o \
+ $(OBJDIR)/strncpy.o \
+ $(OBJDIR)/strpbrk.o \
+ $(OBJDIR)/strrchr.o \
+ $(OBJDIR)/strspn.o \
+ $(OBJDIR)/strstr.o \
+ $(OBJDIR)/strtok.o \
+ $(OBJDIR)/strxfrm.o \
+ $(OBJDIR)/asctime.o \
+ $(OBJDIR)/clock.o \
+ $(OBJDIR)/ctime.o \
+ $(OBJDIR)/difftime.o \
+ $(OBJDIR)/gmtime.o \
+ $(OBJDIR)/localtime.o \
+ $(OBJDIR)/mktime.o \
+ $(OBJDIR)/strftime.o \
+ $(OBJDIR)/time.o \
+ $(OBJDIR)/_POSIX_SOURCE.o \
+ $(OBJDIR)/closedir.o \
+ $(OBJDIR)/opendir.o \
+ $(OBJDIR)/readdir.o \
+ $(OBJDIR)/rewinddir.o \
+ $(OBJDIR)/environ.o \
+ $(OBJDIR)/creat.o \
+ $(OBJDIR)/fcntl.o \
+ $(OBJDIR)/open.o \
+ $(OBJDIR)/getgrgid.o \
+ $(OBJDIR)/getgrnam.o \
+ $(OBJDIR)/getpwnam.o \
+ $(OBJDIR)/getpwuid.o \
+ $(OBJDIR)/siglongjmp.o \
+ $(OBJDIR)/sigsetjmp.o \
+ $(OBJDIR)/kill.o \
+ $(OBJDIR)/sigaction.o \
+ $(OBJDIR)/sigaddset.o \
+ $(OBJDIR)/sigdelset.o \
+ $(OBJDIR)/sigemptyset.o \
+ $(OBJDIR)/sigfillset.o \
+ $(OBJDIR)/sigismember.o \
+ $(OBJDIR)/sigpending.o \
+ $(OBJDIR)/sigprocmask.o \
+ $(OBJDIR)/sigsuspend.o \
+ $(OBJDIR)/L_cuserid.o \
+ $(OBJDIR)/fdopen.o \
+ $(OBJDIR)/fileno.o \
+ $(OBJDIR)/S_ISCHR.o \
+ $(OBJDIR)/chmod.o \
+ $(OBJDIR)/fstat.o \
+ $(OBJDIR)/mkdir.o \
+ $(OBJDIR)/mkfifo.o \
+ $(OBJDIR)/stat.o \
+ $(OBJDIR)/umask.o \
+ $(OBJDIR)/times.o \
+ $(OBJDIR)/uname.o \
+ $(OBJDIR)/wait.o \
+ $(OBJDIR)/waitpid.o \
+ $(OBJDIR)/cfgetispeed.o \
+ $(OBJDIR)/cfgetospeed.o \
+ $(OBJDIR)/cfsetispeed.o \
+ $(OBJDIR)/cfsetospeed.o \
+ $(OBJDIR)/tcdrain.o \
+ $(OBJDIR)/tcflow.o \
+ $(OBJDIR)/tcflush.o \
+ $(OBJDIR)/tcgetattr.o \
+ $(OBJDIR)/tcsendbreak.o \
+ $(OBJDIR)/tcsetattr.o \
+ $(OBJDIR)/tzname.o \
+ $(OBJDIR)/tzset.o \
+ $(OBJDIR)/_exit.o \
+ $(OBJDIR)/access.o \
+ $(OBJDIR)/alarm.o \
+ $(OBJDIR)/chdir.o \
+ $(OBJDIR)/chown.o \
+ $(OBJDIR)/close.o \
+ $(OBJDIR)/ctermid.o \
+ $(OBJDIR)/cuserid.o \
+ $(OBJDIR)/dup.o \
+ $(OBJDIR)/dup2.o \
+ $(OBJDIR)/execl.o \
+ $(OBJDIR)/execle.o \
+ $(OBJDIR)/execlp.o \
+ $(OBJDIR)/execv.o \
+ $(OBJDIR)/execve.o \
+ $(OBJDIR)/execvp.o \
+ $(OBJDIR)/fork.o \
+ $(OBJDIR)/fpathconf.o \
+ $(OBJDIR)/getcwd.o \
+ $(OBJDIR)/getegid.o \
+ $(OBJDIR)/geteuid.o \
+ $(OBJDIR)/getgid.o \
+ $(OBJDIR)/getgroups.o \
+ $(OBJDIR)/getlogin.o \
+ $(OBJDIR)/getpgrp.o \
+ $(OBJDIR)/getpid.o \
+ $(OBJDIR)/getppid.o \
+ $(OBJDIR)/getuid.o \
+ $(OBJDIR)/isatty.o \
+ $(OBJDIR)/link.o \
+ $(OBJDIR)/lseek.o \
+ $(OBJDIR)/pathconf.o \
+ $(OBJDIR)/pause.o \
+ $(OBJDIR)/pipe.o \
+ $(OBJDIR)/read.o \
+ $(OBJDIR)/rmdir.o \
+ $(OBJDIR)/setgid.o \
+ $(OBJDIR)/setpgid.o \
+ $(OBJDIR)/setsid.o \
+ $(OBJDIR)/setuid.o \
+ $(OBJDIR)/sleep.o \
+ $(OBJDIR)/sysconf.o \
+ $(OBJDIR)/tcgetpgrp.o \
+ $(OBJDIR)/tcsetpgrp.o \
+ $(OBJDIR)/ttyname.o \
+ $(OBJDIR)/unlink.o \
+ $(OBJDIR)/write.o \
+ $(OBJDIR)/utime.o
+
+libc.a: $(libc_OBJS)
+ $(AR) r $@ $?
+
+libm_OBJS = \
+ $(OBJDIR)/acos.o \
+ $(OBJDIR)/asin.o \
+ $(OBJDIR)/atan.o \
+ $(OBJDIR)/atan2.o \
+ $(OBJDIR)/ceil.o \
+ $(OBJDIR)/cos.o \
+ $(OBJDIR)/cosh.o \
+ $(OBJDIR)/exp.o \
+ $(OBJDIR)/fabs.o \
+ $(OBJDIR)/floor.o \
+ $(OBJDIR)/fmod.o \
+ $(OBJDIR)/frexp.o \
+ $(OBJDIR)/ldexp.o \
+ $(OBJDIR)/log.o \
+ $(OBJDIR)/log10.o \
+ $(OBJDIR)/modf.o \
+ $(OBJDIR)/pow.o \
+ $(OBJDIR)/sin.o \
+ $(OBJDIR)/sinh.o \
+ $(OBJDIR)/sqrt.o \
+ $(OBJDIR)/tan.o \
+ $(OBJDIR)/tanh.o
+
+libm.a: $(libm_OBJS)
+ $(AR) r $@ $?
+
+$(OBJDIR)/L_cuserid.o: src/POSIX.1-1988/stdio/L_cuserid.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/stdio/L_cuserid.c -o $@
+
+$(OBJDIR)/S_ISCHR.o: src/POSIX.1-1988/sys/stat/S_ISCHR.c $(INCDIR)/sys/stat.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/sys/stat/S_ISCHR.c -o $@
+
+$(OBJDIR)/_POSIX_SOURCE.o: src/POSIX.1-1988/_POSIX_SOURCE.c $(INCDIR)/
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/_POSIX_SOURCE.c -o $@
+
+$(OBJDIR)/_exit.o: src/POSIX.1-1988/unistd/_exit.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/_exit.c -o $@
+
+$(OBJDIR)/abort.o: src/9899-1990/stdlib/abort.c $(INCDIR)/stdlib.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdlib/abort.c -o $@
+
+$(OBJDIR)/abs.o: src/9899-1990/stdlib/abs.c $(INCDIR)/stdlib.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdlib/abs.c -o $@
+
+$(OBJDIR)/access.o: src/POSIX.1-1988/unistd/access.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/access.c -o $@
+
+$(OBJDIR)/acos.o: src/9899-1990/math/acos.c $(INCDIR)/math.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/math/acos.c -o $@
+
+$(OBJDIR)/alarm.o: src/POSIX.1-1988/unistd/alarm.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/alarm.c -o $@
+
+$(OBJDIR)/asctime.o: src/9899-1990/time/asctime.c $(INCDIR)/time.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/time/asctime.c -o $@
+
+$(OBJDIR)/asin.o: src/9899-1990/math/asin.c $(INCDIR)/math.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/math/asin.c -o $@
+
+$(OBJDIR)/atan.o: src/9899-1990/math/atan.c $(INCDIR)/math.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/math/atan.c -o $@
+
+$(OBJDIR)/atan2.o: src/9899-1990/math/atan2.c $(INCDIR)/math.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/math/atan2.c -o $@
+
+$(OBJDIR)/atexit.o: src/9899-1990/stdlib/atexit.c $(INCDIR)/stdlib.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdlib/atexit.c -o $@
+
+$(OBJDIR)/atof.o: src/9899-1990/stdlib/atof.c $(INCDIR)/stdlib.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdlib/atof.c -o $@
+
+$(OBJDIR)/atoi.o: src/9899-1990/stdlib/atoi.c $(INCDIR)/stdlib.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdlib/atoi.c -o $@
+
+$(OBJDIR)/atol.o: src/9899-1990/stdlib/atol.c $(INCDIR)/stdlib.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdlib/atol.c -o $@
+
+$(OBJDIR)/bsearch.o: src/9899-1990/stdlib/bsearch.c $(INCDIR)/stdlib.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdlib/bsearch.c -o $@
+
+$(OBJDIR)/calloc.o: src/9899-1990/stdlib/calloc.c $(INCDIR)/stdlib.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdlib/calloc.c -o $@
+
+$(OBJDIR)/ceil.o: src/9899-1990/math/ceil.c $(INCDIR)/math.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/math/ceil.c -o $@
+
+$(OBJDIR)/cfgetispeed.o: src/POSIX.1-1988/termios/cfgetispeed.c $(INCDIR)/termios.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/termios/cfgetispeed.c -o $@
+
+$(OBJDIR)/cfgetospeed.o: src/POSIX.1-1988/termios/cfgetospeed.c $(INCDIR)/termios.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/termios/cfgetospeed.c -o $@
+
+$(OBJDIR)/cfsetispeed.o: src/POSIX.1-1988/termios/cfsetispeed.c $(INCDIR)/termios.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/termios/cfsetispeed.c -o $@
+
+$(OBJDIR)/cfsetospeed.o: src/POSIX.1-1988/termios/cfsetospeed.c $(INCDIR)/termios.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/termios/cfsetospeed.c -o $@
+
+$(OBJDIR)/chdir.o: src/POSIX.1-1988/unistd/chdir.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/chdir.c -o $@
+
+$(OBJDIR)/chmod.o: src/POSIX.1-1988/sys/stat/chmod.c $(INCDIR)/sys/stat.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/sys/stat/chmod.c -o $@
+
+$(OBJDIR)/chown.o: src/POSIX.1-1988/unistd/chown.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/chown.c -o $@
+
+$(OBJDIR)/clearerr.o: src/9899-1990/stdio/clearerr.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/clearerr.c -o $@
+
+$(OBJDIR)/clock.o: src/9899-1990/time/clock.c $(INCDIR)/time.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/time/clock.c -o $@
+
+$(OBJDIR)/close.o: src/POSIX.1-1988/unistd/close.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/close.c -o $@
+
+$(OBJDIR)/closedir.o: src/POSIX.1-1988/dirent/closedir.c $(INCDIR)/dirent.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/dirent/closedir.c -o $@
+
+$(OBJDIR)/cos.o: src/9899-1990/math/cos.c $(INCDIR)/math.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/math/cos.c -o $@
+
+$(OBJDIR)/cosh.o: src/9899-1990/math/cosh.c $(INCDIR)/math.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/math/cosh.c -o $@
+
+$(OBJDIR)/creat.o: src/POSIX.1-1988/fcntl/creat.c $(INCDIR)/fcntl.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/fcntl/creat.c -o $@
+
+$(OBJDIR)/ctermid.o: src/POSIX.1-1988/unistd/ctermid.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/ctermid.c -o $@
+
+$(OBJDIR)/ctime.o: src/9899-1990/time/ctime.c $(INCDIR)/time.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/time/ctime.c -o $@
+
+$(OBJDIR)/cuserid.o: src/POSIX.1-1988/unistd/cuserid.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/cuserid.c -o $@
+
+$(OBJDIR)/difftime.o: src/9899-1990/time/difftime.c $(INCDIR)/time.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/time/difftime.c -o $@
+
+$(OBJDIR)/div.o: src/9899-1990/stdlib/div.c $(INCDIR)/stdlib.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdlib/div.c -o $@
+
+$(OBJDIR)/dup.o: src/POSIX.1-1988/unistd/dup.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/dup.c -o $@
+
+$(OBJDIR)/dup2.o: src/POSIX.1-1988/unistd/dup2.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/dup2.c -o $@
+
+$(OBJDIR)/environ.o: src/POSIX.1-1988/environ.c $(INCDIR)/
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/environ.c -o $@
+
+$(OBJDIR)/execl.o: src/POSIX.1-1988/unistd/execl.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/execl.c -o $@
+
+$(OBJDIR)/execle.o: src/POSIX.1-1988/unistd/execle.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/execle.c -o $@
+
+$(OBJDIR)/execlp.o: src/POSIX.1-1988/unistd/execlp.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/execlp.c -o $@
+
+$(OBJDIR)/execv.o: src/POSIX.1-1988/unistd/execv.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/execv.c -o $@
+
+$(OBJDIR)/execve.o: src/POSIX.1-1988/unistd/execve.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/execve.c -o $@
+
+$(OBJDIR)/execvp.o: src/POSIX.1-1988/unistd/execvp.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/execvp.c -o $@
+
+$(OBJDIR)/exit.o: src/9899-1990/stdlib/exit.c $(INCDIR)/stdlib.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdlib/exit.c -o $@
+
+$(OBJDIR)/exp.o: src/9899-1990/math/exp.c $(INCDIR)/math.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/math/exp.c -o $@
+
+$(OBJDIR)/fabs.o: src/9899-1990/math/fabs.c $(INCDIR)/math.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/math/fabs.c -o $@
+
+$(OBJDIR)/fclose.o: src/9899-1990/stdio/fclose.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/fclose.c -o $@
+
+$(OBJDIR)/fcntl.o: src/POSIX.1-1988/fcntl/fcntl.c $(INCDIR)/fcntl.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/fcntl/fcntl.c -o $@
+
+$(OBJDIR)/fdopen.o: src/POSIX.1-1988/stdio/fdopen.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/stdio/fdopen.c -o $@
+
+$(OBJDIR)/feof.o: src/9899-1990/stdio/feof.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/feof.c -o $@
+
+$(OBJDIR)/ferror.o: src/9899-1990/stdio/ferror.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/ferror.c -o $@
+
+$(OBJDIR)/fflush.o: src/9899-1990/stdio/fflush.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/fflush.c -o $@
+
+$(OBJDIR)/fgetc.o: src/9899-1990/stdio/fgetc.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/fgetc.c -o $@
+
+$(OBJDIR)/fgetpos.o: src/9899-1990/stdio/fgetpos.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/fgetpos.c -o $@
+
+$(OBJDIR)/fgets.o: src/9899-1990/stdio/fgets.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/fgets.c -o $@
+
+$(OBJDIR)/fileno.o: src/POSIX.1-1988/stdio/fileno.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/stdio/fileno.c -o $@
+
+$(OBJDIR)/floor.o: src/9899-1990/math/floor.c $(INCDIR)/math.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/math/floor.c -o $@
+
+$(OBJDIR)/fmod.o: src/9899-1990/math/fmod.c $(INCDIR)/math.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/math/fmod.c -o $@
+
+$(OBJDIR)/fopen.o: src/9899-1990/stdio/fopen.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/fopen.c -o $@
+
+$(OBJDIR)/fork.o: src/POSIX.1-1988/unistd/fork.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/fork.c -o $@
+
+$(OBJDIR)/fpathconf.o: src/POSIX.1-1988/unistd/fpathconf.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/fpathconf.c -o $@
+
+$(OBJDIR)/fprintf.o: src/9899-1990/stdio/fprintf.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/fprintf.c -o $@
+
+$(OBJDIR)/fputc.o: src/9899-1990/stdio/fputc.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/fputc.c -o $@
+
+$(OBJDIR)/fputs.o: src/9899-1990/stdio/fputs.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/fputs.c -o $@
+
+$(OBJDIR)/fread.o: src/9899-1990/stdio/fread.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/fread.c -o $@
+
+$(OBJDIR)/free.o: src/9899-1990/stdlib/free.c $(INCDIR)/stdlib.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdlib/free.c -o $@
+
+$(OBJDIR)/freopen.o: src/9899-1990/stdio/freopen.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/freopen.c -o $@
+
+$(OBJDIR)/frexp.o: src/9899-1990/math/frexp.c $(INCDIR)/math.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/math/frexp.c -o $@
+
+$(OBJDIR)/fscanf.o: src/9899-1990/stdio/fscanf.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/fscanf.c -o $@
+
+$(OBJDIR)/fseek.o: src/9899-1990/stdio/fseek.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/fseek.c -o $@
+
+$(OBJDIR)/fsetpos.o: src/9899-1990/stdio/fsetpos.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/fsetpos.c -o $@
+
+$(OBJDIR)/fstat.o: src/POSIX.1-1988/sys/stat/fstat.c $(INCDIR)/sys/stat.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/sys/stat/fstat.c -o $@
+
+$(OBJDIR)/ftell.o: src/9899-1990/stdio/ftell.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/ftell.c -o $@
+
+$(OBJDIR)/fwrite.o: src/9899-1990/stdio/fwrite.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/fwrite.c -o $@
+
+$(OBJDIR)/getc.o: src/9899-1990/stdio/getc.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/getc.c -o $@
+
+$(OBJDIR)/getchar.o: src/9899-1990/stdio/getchar.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/getchar.c -o $@
+
+$(OBJDIR)/getcwd.o: src/POSIX.1-1988/unistd/getcwd.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/getcwd.c -o $@
+
+$(OBJDIR)/getegid.o: src/POSIX.1-1988/unistd/getegid.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/getegid.c -o $@
+
+$(OBJDIR)/getenv.o: src/9899-1990/stdlib/getenv.c $(INCDIR)/stdlib.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdlib/getenv.c -o $@
+
+$(OBJDIR)/geteuid.o: src/POSIX.1-1988/unistd/geteuid.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/geteuid.c -o $@
+
+$(OBJDIR)/getgid.o: src/POSIX.1-1988/unistd/getgid.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/getgid.c -o $@
+
+$(OBJDIR)/getgrgid.o: src/POSIX.1-1988/grp/getgrgid.c $(INCDIR)/grp.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/grp/getgrgid.c -o $@
+
+$(OBJDIR)/getgrnam.o: src/POSIX.1-1988/grp/getgrnam.c $(INCDIR)/grp.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/grp/getgrnam.c -o $@
+
+$(OBJDIR)/getgroups.o: src/POSIX.1-1988/unistd/getgroups.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/getgroups.c -o $@
+
+$(OBJDIR)/getlogin.o: src/POSIX.1-1988/unistd/getlogin.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/getlogin.c -o $@
+
+$(OBJDIR)/getpgrp.o: src/POSIX.1-1988/unistd/getpgrp.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/getpgrp.c -o $@
+
+$(OBJDIR)/getpid.o: src/POSIX.1-1988/unistd/getpid.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/getpid.c -o $@
+
+$(OBJDIR)/getppid.o: src/POSIX.1-1988/unistd/getppid.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/getppid.c -o $@
+
+$(OBJDIR)/getpwnam.o: src/POSIX.1-1988/pwd/getpwnam.c $(INCDIR)/pwd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/pwd/getpwnam.c -o $@
+
+$(OBJDIR)/getpwuid.o: src/POSIX.1-1988/pwd/getpwuid.c $(INCDIR)/pwd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/pwd/getpwuid.c -o $@
+
+$(OBJDIR)/gets.o: src/9899-1990/stdio/gets.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/gets.c -o $@
+
+$(OBJDIR)/getuid.o: src/POSIX.1-1988/unistd/getuid.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/getuid.c -o $@
+
+$(OBJDIR)/gmtime.o: src/9899-1990/time/gmtime.c $(INCDIR)/time.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/time/gmtime.c -o $@
+
+$(OBJDIR)/isalnum.o: src/9899-1990/ctype/isalnum.c $(INCDIR)/ctype.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/ctype/isalnum.c -o $@
+
+$(OBJDIR)/isalpha.o: src/9899-1990/ctype/isalpha.c $(INCDIR)/ctype.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/ctype/isalpha.c -o $@
+
+$(OBJDIR)/isatty.o: src/POSIX.1-1988/unistd/isatty.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/isatty.c -o $@
+
+$(OBJDIR)/iscntrl.o: src/9899-1990/ctype/iscntrl.c $(INCDIR)/ctype.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/ctype/iscntrl.c -o $@
+
+$(OBJDIR)/isdigit.o: src/9899-1990/ctype/isdigit.c $(INCDIR)/ctype.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/ctype/isdigit.c -o $@
+
+$(OBJDIR)/isgraph.o: src/9899-1990/ctype/isgraph.c $(INCDIR)/ctype.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/ctype/isgraph.c -o $@
+
+$(OBJDIR)/islower.o: src/9899-1990/ctype/islower.c $(INCDIR)/ctype.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/ctype/islower.c -o $@
+
+$(OBJDIR)/isprint.o: src/9899-1990/ctype/isprint.c $(INCDIR)/ctype.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/ctype/isprint.c -o $@
+
+$(OBJDIR)/ispunct.o: src/9899-1990/ctype/ispunct.c $(INCDIR)/ctype.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/ctype/ispunct.c -o $@
+
+$(OBJDIR)/isspace.o: src/9899-1990/ctype/isspace.c $(INCDIR)/ctype.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/ctype/isspace.c -o $@
+
+$(OBJDIR)/isupper.o: src/9899-1990/ctype/isupper.c $(INCDIR)/ctype.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/ctype/isupper.c -o $@
+
+$(OBJDIR)/isxdigit.o: src/9899-1990/ctype/isxdigit.c $(INCDIR)/ctype.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/ctype/isxdigit.c -o $@
+
+$(OBJDIR)/kill.o: src/POSIX.1-1988/signal/kill.c $(INCDIR)/signal.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/signal/kill.c -o $@
+
+$(OBJDIR)/labs.o: src/9899-1990/stdlib/labs.c $(INCDIR)/stdlib.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdlib/labs.c -o $@
+
+$(OBJDIR)/ldexp.o: src/9899-1990/math/ldexp.c $(INCDIR)/math.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/math/ldexp.c -o $@
+
+$(OBJDIR)/ldiv.o: src/9899-1990/stdlib/ldiv.c $(INCDIR)/stdlib.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdlib/ldiv.c -o $@
+
+$(OBJDIR)/link.o: src/POSIX.1-1988/unistd/link.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/link.c -o $@
+
+$(OBJDIR)/localeconv.o: src/9899-1990/locale/localeconv.c $(INCDIR)/locale.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/locale/localeconv.c -o $@
+
+$(OBJDIR)/localtime.o: src/9899-1990/time/localtime.c $(INCDIR)/time.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/time/localtime.c -o $@
+
+$(OBJDIR)/log.o: src/9899-1990/math/log.c $(INCDIR)/math.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/math/log.c -o $@
+
+$(OBJDIR)/log10.o: src/9899-1990/math/log10.c $(INCDIR)/math.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/math/log10.c -o $@
+
+$(OBJDIR)/longjmp.o: src/9899-1990/setjmp/longjmp.c $(INCDIR)/setjmp.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/setjmp/longjmp.c -o $@
+
+$(OBJDIR)/lseek.o: src/POSIX.1-1988/unistd/lseek.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/lseek.c -o $@
+
+$(OBJDIR)/malloc.o: src/9899-1990/stdlib/malloc.c $(INCDIR)/stdlib.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdlib/malloc.c -o $@
+
+$(OBJDIR)/mblen.o: src/9899-1990/stdlib/mblen.c $(INCDIR)/stdlib.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdlib/mblen.c -o $@
+
+$(OBJDIR)/mbstowcs.o: src/9899-1990/stdlib/mbstowcs.c $(INCDIR)/stdlib.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdlib/mbstowcs.c -o $@
+
+$(OBJDIR)/mbtowc.o: src/9899-1990/stdlib/mbtowc.c $(INCDIR)/stdlib.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdlib/mbtowc.c -o $@
+
+$(OBJDIR)/memchr.o: src/9899-1990/string/memchr.c $(INCDIR)/string.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/string/memchr.c -o $@
+
+$(OBJDIR)/memcmp.o: src/9899-1990/string/memcmp.c $(INCDIR)/string.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/string/memcmp.c -o $@
+
+$(OBJDIR)/memcpy.o: src/9899-1990/string/memcpy.c $(INCDIR)/string.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/string/memcpy.c -o $@
+
+$(OBJDIR)/memmove.o: src/9899-1990/string/memmove.c $(INCDIR)/string.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/string/memmove.c -o $@
+
+$(OBJDIR)/memset.o: src/9899-1990/string/memset.c $(INCDIR)/string.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/string/memset.c -o $@
+
+$(OBJDIR)/mkdir.o: src/POSIX.1-1988/sys/stat/mkdir.c $(INCDIR)/sys/stat.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/sys/stat/mkdir.c -o $@
+
+$(OBJDIR)/mkfifo.o: src/POSIX.1-1988/sys/stat/mkfifo.c $(INCDIR)/sys/stat.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/sys/stat/mkfifo.c -o $@
+
+$(OBJDIR)/mktime.o: src/9899-1990/time/mktime.c $(INCDIR)/time.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/time/mktime.c -o $@
+
+$(OBJDIR)/modf.o: src/9899-1990/math/modf.c $(INCDIR)/math.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/math/modf.c -o $@
+
+$(OBJDIR)/open.o: src/POSIX.1-1988/fcntl/open.c $(INCDIR)/fcntl.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/fcntl/open.c -o $@
+
+$(OBJDIR)/opendir.o: src/POSIX.1-1988/dirent/opendir.c $(INCDIR)/dirent.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/dirent/opendir.c -o $@
+
+$(OBJDIR)/pathconf.o: src/POSIX.1-1988/unistd/pathconf.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/pathconf.c -o $@
+
+$(OBJDIR)/pause.o: src/POSIX.1-1988/unistd/pause.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/pause.c -o $@
+
+$(OBJDIR)/perror.o: src/9899-1990/stdio/perror.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/perror.c -o $@
+
+$(OBJDIR)/pipe.o: src/POSIX.1-1988/unistd/pipe.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/pipe.c -o $@
+
+$(OBJDIR)/pow.o: src/9899-1990/math/pow.c $(INCDIR)/math.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/math/pow.c -o $@
+
+$(OBJDIR)/printf.o: src/9899-1990/stdio/printf.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/printf.c -o $@
+
+$(OBJDIR)/putc.o: src/9899-1990/stdio/putc.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/putc.c -o $@
+
+$(OBJDIR)/putchar.o: src/9899-1990/stdio/putchar.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/putchar.c -o $@
+
+$(OBJDIR)/puts.o: src/9899-1990/stdio/puts.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/puts.c -o $@
+
+$(OBJDIR)/qsort.o: src/9899-1990/stdlib/qsort.c $(INCDIR)/stdlib.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdlib/qsort.c -o $@
+
+$(OBJDIR)/raise.o: src/9899-1990/signal/raise.c $(INCDIR)/signal.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/signal/raise.c -o $@
+
+$(OBJDIR)/rand.o: src/9899-1990/stdlib/rand.c $(INCDIR)/stdlib.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdlib/rand.c -o $@
+
+$(OBJDIR)/read.o: src/POSIX.1-1988/unistd/read.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/read.c -o $@
+
+$(OBJDIR)/readdir.o: src/POSIX.1-1988/dirent/readdir.c $(INCDIR)/dirent.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/dirent/readdir.c -o $@
+
+$(OBJDIR)/realloc.o: src/9899-1990/stdlib/realloc.c $(INCDIR)/stdlib.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdlib/realloc.c -o $@
+
+$(OBJDIR)/remove.o: src/9899-1990/stdio/remove.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/remove.c -o $@
+
+$(OBJDIR)/rename.o: src/9899-1990/stdio/rename.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/rename.c -o $@
+
+$(OBJDIR)/rewind.o: src/9899-1990/stdio/rewind.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/rewind.c -o $@
+
+$(OBJDIR)/rewinddir.o: src/POSIX.1-1988/dirent/rewinddir.c $(INCDIR)/dirent.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/dirent/rewinddir.c -o $@
+
+$(OBJDIR)/rmdir.o: src/POSIX.1-1988/unistd/rmdir.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/rmdir.c -o $@
+
+$(OBJDIR)/scanf.o: src/9899-1990/stdio/scanf.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/scanf.c -o $@
+
+$(OBJDIR)/setbuf.o: src/9899-1990/stdio/setbuf.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/setbuf.c -o $@
+
+$(OBJDIR)/setgid.o: src/POSIX.1-1988/unistd/setgid.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/setgid.c -o $@
+
+$(OBJDIR)/setjmp.o: src/9899-1990/setjmp/setjmp.c $(INCDIR)/setjmp.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/setjmp/setjmp.c -o $@
+
+$(OBJDIR)/setlocale.o: src/9899-1990/locale/setlocale.c $(INCDIR)/locale.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/locale/setlocale.c -o $@
+
+$(OBJDIR)/setpgid.o: src/POSIX.1-1988/unistd/setpgid.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/setpgid.c -o $@
+
+$(OBJDIR)/setsid.o: src/POSIX.1-1988/unistd/setsid.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/setsid.c -o $@
+
+$(OBJDIR)/setuid.o: src/POSIX.1-1988/unistd/setuid.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/setuid.c -o $@
+
+$(OBJDIR)/setvbuf.o: src/9899-1990/stdio/setvbuf.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/setvbuf.c -o $@
+
+$(OBJDIR)/sigaction.o: src/POSIX.1-1988/signal/sigaction.c $(INCDIR)/signal.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/signal/sigaction.c -o $@
+
+$(OBJDIR)/sigaddset.o: src/POSIX.1-1988/signal/sigaddset.c $(INCDIR)/signal.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/signal/sigaddset.c -o $@
+
+$(OBJDIR)/sigdelset.o: src/POSIX.1-1988/signal/sigdelset.c $(INCDIR)/signal.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/signal/sigdelset.c -o $@
+
+$(OBJDIR)/sigemptyset.o: src/POSIX.1-1988/signal/sigemptyset.c $(INCDIR)/signal.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/signal/sigemptyset.c -o $@
+
+$(OBJDIR)/sigfillset.o: src/POSIX.1-1988/signal/sigfillset.c $(INCDIR)/signal.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/signal/sigfillset.c -o $@
+
+$(OBJDIR)/sigismember.o: src/POSIX.1-1988/signal/sigismember.c $(INCDIR)/signal.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/signal/sigismember.c -o $@
+
+$(OBJDIR)/siglongjmp.o: src/POSIX.1-1988/setjmp/siglongjmp.c $(INCDIR)/setjmp.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/setjmp/siglongjmp.c -o $@
+
+$(OBJDIR)/signal.o: src/9899-1990/signal/signal.c $(INCDIR)/signal.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/signal/signal.c -o $@
+
+$(OBJDIR)/sigpending.o: src/POSIX.1-1988/signal/sigpending.c $(INCDIR)/signal.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/signal/sigpending.c -o $@
+
+$(OBJDIR)/sigprocmask.o: src/POSIX.1-1988/signal/sigprocmask.c $(INCDIR)/signal.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/signal/sigprocmask.c -o $@
+
+$(OBJDIR)/sigsetjmp.o: src/POSIX.1-1988/setjmp/sigsetjmp.c $(INCDIR)/setjmp.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/setjmp/sigsetjmp.c -o $@
+
+$(OBJDIR)/sigsuspend.o: src/POSIX.1-1988/signal/sigsuspend.c $(INCDIR)/signal.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/signal/sigsuspend.c -o $@
+
+$(OBJDIR)/sin.o: src/9899-1990/math/sin.c $(INCDIR)/math.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/math/sin.c -o $@
+
+$(OBJDIR)/sinh.o: src/9899-1990/math/sinh.c $(INCDIR)/math.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/math/sinh.c -o $@
+
+$(OBJDIR)/sleep.o: src/POSIX.1-1988/unistd/sleep.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/sleep.c -o $@
+
+$(OBJDIR)/sprintf.o: src/9899-1990/stdio/sprintf.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/sprintf.c -o $@
+
+$(OBJDIR)/sqrt.o: src/9899-1990/math/sqrt.c $(INCDIR)/math.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/math/sqrt.c -o $@
+
+$(OBJDIR)/srand.o: src/9899-1990/stdlib/srand.c $(INCDIR)/stdlib.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdlib/srand.c -o $@
+
+$(OBJDIR)/sscanf.o: src/9899-1990/stdio/sscanf.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/sscanf.c -o $@
+
+$(OBJDIR)/stat.o: src/POSIX.1-1988/sys/stat/stat.c $(INCDIR)/sys/stat.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/sys/stat/stat.c -o $@
+
+$(OBJDIR)/strcat.o: src/9899-1990/string/strcat.c $(INCDIR)/string.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/string/strcat.c -o $@
+
+$(OBJDIR)/strchr.o: src/9899-1990/string/strchr.c $(INCDIR)/string.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/string/strchr.c -o $@
+
+$(OBJDIR)/strcmp.o: src/9899-1990/string/strcmp.c $(INCDIR)/string.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/string/strcmp.c -o $@
+
+$(OBJDIR)/strcoll.o: src/9899-1990/string/strcoll.c $(INCDIR)/string.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/string/strcoll.c -o $@
+
+$(OBJDIR)/strcpy.o: src/9899-1990/string/strcpy.c $(INCDIR)/string.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/string/strcpy.c -o $@
+
+$(OBJDIR)/strcspn.o: src/9899-1990/string/strcspn.c $(INCDIR)/string.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/string/strcspn.c -o $@
+
+$(OBJDIR)/strerror.o: src/9899-1990/string/strerror.c $(INCDIR)/string.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/string/strerror.c -o $@
+
+$(OBJDIR)/strftime.o: src/9899-1990/time/strftime.c $(INCDIR)/time.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/time/strftime.c -o $@
+
+$(OBJDIR)/strlen.o: src/9899-1990/string/strlen.c $(INCDIR)/string.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/string/strlen.c -o $@
+
+$(OBJDIR)/strncat.o: src/9899-1990/string/strncat.c $(INCDIR)/string.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/string/strncat.c -o $@
+
+$(OBJDIR)/strncmp.o: src/9899-1990/string/strncmp.c $(INCDIR)/string.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/string/strncmp.c -o $@
+
+$(OBJDIR)/strncpy.o: src/9899-1990/string/strncpy.c $(INCDIR)/string.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/string/strncpy.c -o $@
+
+$(OBJDIR)/strpbrk.o: src/9899-1990/string/strpbrk.c $(INCDIR)/string.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/string/strpbrk.c -o $@
+
+$(OBJDIR)/strrchr.o: src/9899-1990/string/strrchr.c $(INCDIR)/string.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/string/strrchr.c -o $@
+
+$(OBJDIR)/strspn.o: src/9899-1990/string/strspn.c $(INCDIR)/string.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/string/strspn.c -o $@
+
+$(OBJDIR)/strstr.o: src/9899-1990/string/strstr.c $(INCDIR)/string.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/string/strstr.c -o $@
+
+$(OBJDIR)/strtod.o: src/9899-1990/stdlib/strtod.c $(INCDIR)/stdlib.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdlib/strtod.c -o $@
+
+$(OBJDIR)/strtok.o: src/9899-1990/string/strtok.c $(INCDIR)/string.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/string/strtok.c -o $@
+
+$(OBJDIR)/strtol.o: src/9899-1990/stdlib/strtol.c $(INCDIR)/stdlib.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdlib/strtol.c -o $@
+
+$(OBJDIR)/strtoul.o: src/9899-1990/stdlib/strtoul.c $(INCDIR)/stdlib.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdlib/strtoul.c -o $@
+
+$(OBJDIR)/strxfrm.o: src/9899-1990/string/strxfrm.c $(INCDIR)/string.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/string/strxfrm.c -o $@
+
+$(OBJDIR)/sysconf.o: src/POSIX.1-1988/unistd/sysconf.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/sysconf.c -o $@
+
+$(OBJDIR)/system.o: src/9899-1990/stdlib/system.c $(INCDIR)/stdlib.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdlib/system.c -o $@
+
+$(OBJDIR)/tan.o: src/9899-1990/math/tan.c $(INCDIR)/math.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/math/tan.c -o $@
+
+$(OBJDIR)/tanh.o: src/9899-1990/math/tanh.c $(INCDIR)/math.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/math/tanh.c -o $@
+
+$(OBJDIR)/tcdrain.o: src/POSIX.1-1988/termios/tcdrain.c $(INCDIR)/termios.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/termios/tcdrain.c -o $@
+
+$(OBJDIR)/tcflow.o: src/POSIX.1-1988/termios/tcflow.c $(INCDIR)/termios.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/termios/tcflow.c -o $@
+
+$(OBJDIR)/tcflush.o: src/POSIX.1-1988/termios/tcflush.c $(INCDIR)/termios.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/termios/tcflush.c -o $@
+
+$(OBJDIR)/tcgetattr.o: src/POSIX.1-1988/termios/tcgetattr.c $(INCDIR)/termios.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/termios/tcgetattr.c -o $@
+
+$(OBJDIR)/tcgetpgrp.o: src/POSIX.1-1988/unistd/tcgetpgrp.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/tcgetpgrp.c -o $@
+
+$(OBJDIR)/tcsendbreak.o: src/POSIX.1-1988/termios/tcsendbreak.c $(INCDIR)/termios.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/termios/tcsendbreak.c -o $@
+
+$(OBJDIR)/tcsetattr.o: src/POSIX.1-1988/termios/tcsetattr.c $(INCDIR)/termios.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/termios/tcsetattr.c -o $@
+
+$(OBJDIR)/tcsetpgrp.o: src/POSIX.1-1988/unistd/tcsetpgrp.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/tcsetpgrp.c -o $@
+
+$(OBJDIR)/time.o: src/9899-1990/time/time.c $(INCDIR)/time.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/time/time.c -o $@
+
+$(OBJDIR)/times.o: src/POSIX.1-1988/sys/times/times.c $(INCDIR)/sys/times.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/sys/times/times.c -o $@
+
+$(OBJDIR)/tmpfile.o: src/9899-1990/stdio/tmpfile.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/tmpfile.c -o $@
+
+$(OBJDIR)/tmpnam.o: src/9899-1990/stdio/tmpnam.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/tmpnam.c -o $@
+
+$(OBJDIR)/tolower.o: src/9899-1990/ctype/tolower.c $(INCDIR)/ctype.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/ctype/tolower.c -o $@
+
+$(OBJDIR)/toupper.o: src/9899-1990/ctype/toupper.c $(INCDIR)/ctype.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/ctype/toupper.c -o $@
+
+$(OBJDIR)/ttyname.o: src/POSIX.1-1988/unistd/ttyname.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/ttyname.c -o $@
+
+$(OBJDIR)/tzname.o: src/POSIX.1-1988/time/tzname.c $(INCDIR)/time.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/time/tzname.c -o $@
+
+$(OBJDIR)/tzset.o: src/POSIX.1-1988/time/tzset.c $(INCDIR)/time.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/time/tzset.c -o $@
+
+$(OBJDIR)/umask.o: src/POSIX.1-1988/sys/stat/umask.c $(INCDIR)/sys/stat.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/sys/stat/umask.c -o $@
+
+$(OBJDIR)/uname.o: src/POSIX.1-1988/sys/utsname/uname.c $(INCDIR)/sys/utsname.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/sys/utsname/uname.c -o $@
+
+$(OBJDIR)/ungetc.o: src/9899-1990/stdio/ungetc.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/ungetc.c -o $@
+
+$(OBJDIR)/unlink.o: src/POSIX.1-1988/unistd/unlink.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/unlink.c -o $@
+
+$(OBJDIR)/utime.o: src/POSIX.1-1988/utime/utime.c $(INCDIR)/utime.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/utime/utime.c -o $@
+
+$(OBJDIR)/vfprintf.o: src/9899-1990/stdio/vfprintf.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/vfprintf.c -o $@
+
+$(OBJDIR)/vprintf.o: src/9899-1990/stdio/vprintf.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/vprintf.c -o $@
+
+$(OBJDIR)/vsprintf.o: src/9899-1990/stdio/vsprintf.c $(INCDIR)/stdio.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdio/vsprintf.c -o $@
+
+$(OBJDIR)/wait.o: src/POSIX.1-1988/sys/wait/wait.c $(INCDIR)/sys/wait.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/sys/wait/wait.c -o $@
+
+$(OBJDIR)/waitpid.o: src/POSIX.1-1988/sys/wait/waitpid.c $(INCDIR)/sys/wait.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/sys/wait/waitpid.c -o $@
+
+$(OBJDIR)/wcstombs.o: src/9899-1990/stdlib/wcstombs.c $(INCDIR)/stdlib.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdlib/wcstombs.c -o $@
+
+$(OBJDIR)/wctomb.o: src/9899-1990/stdlib/wctomb.c $(INCDIR)/stdlib.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/9899-1990/stdlib/wctomb.c -o $@
+
+$(OBJDIR)/write.o: src/POSIX.1-1988/unistd/write.c $(INCDIR)/unistd.h
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c src/POSIX.1-1988/unistd/write.c -o $@
+
+$(OBJDIR)/libc.o: nonstd/libc.c
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c $? -o $@
+
+$(OBJDIR)/x86-64.o: nonstd/x86-64.s
+ -@mkdir -p $(OBJDIR)
+ $(CC) $(CFLAGS) -c $? -o $@
+
+all: libc.a libm.a
+
diff --git a/.gitmodules b/.gitmodules
index c66da456..75a0586a 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,12 +1,12 @@
[submodule "9899-1990"]
- path = std/9899-1990
+ path = src/9899-1990
url = git@gitlab.com:ung.org/lib/9899-1990.git
[submodule "POSIX.1-1988"]
- path = std/POSIX.1-1988
+ path = src/POSIX.1-1988
url = git@gitlab.com:ung.org/lib/POSIX.1-1988.git
[submodule "POSIX.1-1990"]
- path = std/POSIX.1-1990
+ path = src/POSIX.1-1990
url = git@gitlab.com:ung.org/lib/POSIX.1-1990.git
[submodule "std/9899-1990-AMD1"]
- path = std/9899-1990-AMD1
+ path = src/9899-1990-AMD1
url = git@gitlab.com:ung.org/lib/9899-1990-AMD1.git
diff --git a/.headers.mk b/.headers.mk
index 1b18ebe0..ab345e68 100644
--- a/.headers.mk
+++ b/.headers.mk
@@ -5,345 +5,812 @@ include config.mk
default: headers
assert_h_SOURCES = \
- std/9899-1990/assert/assert.c
+ src/9899-1990/assert/assert.c
$(INCDIR)/assert.h: $(assert_h_SOURCES)
sh mkh.sh $@ $(assert_h_SOURCES)
+cpio_h_SOURCES = \
+ src/POSIX.1-1988/cpio/C_IRGRP.c \
+ src/POSIX.1-1988/cpio/C_IROTH.c \
+ src/POSIX.1-1988/cpio/C_IRUSR.c \
+ src/POSIX.1-1988/cpio/C_ISBLK.c \
+ src/POSIX.1-1988/cpio/C_ISCHR.c \
+ src/POSIX.1-1988/cpio/C_ISCTG.c \
+ src/POSIX.1-1988/cpio/C_ISDIR.c \
+ src/POSIX.1-1988/cpio/C_ISFIFO.c \
+ src/POSIX.1-1988/cpio/C_ISGID.c \
+ src/POSIX.1-1988/cpio/C_ISLNK.c \
+ src/POSIX.1-1988/cpio/C_ISREG.c \
+ src/POSIX.1-1988/cpio/C_ISSOCK.c \
+ src/POSIX.1-1988/cpio/C_ISUID.c \
+ src/POSIX.1-1988/cpio/C_ISVTX.c \
+ src/POSIX.1-1988/cpio/C_IWGRP.c \
+ src/POSIX.1-1988/cpio/C_IWOTH.c \
+ src/POSIX.1-1988/cpio/C_IWUSR.c \
+ src/POSIX.1-1988/cpio/C_IXGRP.c \
+ src/POSIX.1-1988/cpio/C_IXOTH.c \
+ src/POSIX.1-1988/cpio/C_IXUSR.c \
+ src/POSIX.1-1988/cpio/MAGIC.c
+
+$(INCDIR)/cpio.h: $(cpio_h_SOURCES)
+ sh mkh.sh $@ $(cpio_h_SOURCES)
+
ctype_h_SOURCES = \
- std/9899-1990/ctype/isalnum.c \
- std/9899-1990/ctype/isalpha.c \
- std/9899-1990/ctype/iscntrl.c \
- std/9899-1990/ctype/isdigit.c \
- std/9899-1990/ctype/isgraph.c \
- std/9899-1990/ctype/islower.c \
- std/9899-1990/ctype/isprint.c \
- std/9899-1990/ctype/ispunct.c \
- std/9899-1990/ctype/isspace.c \
- std/9899-1990/ctype/isupper.c \
- std/9899-1990/ctype/isxdigit.c \
- std/9899-1990/ctype/tolower.c \
- std/9899-1990/ctype/toupper.c
+ src/9899-1990/ctype/isalnum.c \
+ src/9899-1990/ctype/isalpha.c \
+ src/9899-1990/ctype/iscntrl.c \
+ src/9899-1990/ctype/isdigit.c \
+ src/9899-1990/ctype/isgraph.c \
+ src/9899-1990/ctype/islower.c \
+ src/9899-1990/ctype/isprint.c \
+ src/9899-1990/ctype/ispunct.c \
+ src/9899-1990/ctype/isspace.c \
+ src/9899-1990/ctype/isupper.c \
+ src/9899-1990/ctype/isxdigit.c \
+ src/9899-1990/ctype/tolower.c \
+ src/9899-1990/ctype/toupper.c
$(INCDIR)/ctype.h: $(ctype_h_SOURCES)
sh mkh.sh $@ $(ctype_h_SOURCES)
+dirent_h_SOURCES = \
+ src/POSIX.1-1988/dirent/DIR.c \
+ src/POSIX.1-1988/dirent/closedir.c \
+ src/POSIX.1-1988/dirent/opendir.c \
+ src/POSIX.1-1988/dirent/readdir.c \
+ src/POSIX.1-1988/dirent/rewinddir.c \
+ src/POSIX.1-1988/dirent/struct_dirent.c
+
+$(INCDIR)/dirent.h: $(dirent_h_SOURCES)
+ sh mkh.sh $@ $(dirent_h_SOURCES)
+
errno_h_SOURCES = \
- std/9899-1990/errno/EDOM.c \
- std/9899-1990/errno/ERANGE.c \
- std/9899-1990/errno/errno.c
+ src/9899-1990/errno/EDOM.c \
+ src/9899-1990/errno/ERANGE.c \
+ src/9899-1990/errno/errno.c \
+ src/POSIX.1-1988/errno/E2BIG.c \
+ src/POSIX.1-1988/errno/EACCES.c \
+ src/POSIX.1-1988/errno/EAGAIN.c \
+ src/POSIX.1-1988/errno/EBADF.c \
+ src/POSIX.1-1988/errno/EBUSY.c \
+ src/POSIX.1-1988/errno/ECHILD.c \
+ src/POSIX.1-1988/errno/EDEADLK.c \
+ src/POSIX.1-1988/errno/EEXIST.c \
+ src/POSIX.1-1988/errno/EFAULT.c \
+ src/POSIX.1-1988/errno/EFBIG.c \
+ src/POSIX.1-1988/errno/EINTR.c \
+ src/POSIX.1-1988/errno/EINVAL.c \
+ src/POSIX.1-1988/errno/EIO.c \
+ src/POSIX.1-1988/errno/EISDIR.c \
+ src/POSIX.1-1988/errno/EMFILE.c \
+ src/POSIX.1-1988/errno/EMLINK.c \
+ src/POSIX.1-1988/errno/ENAMETOOLONG.c \
+ src/POSIX.1-1988/errno/ENFILE.c \
+ src/POSIX.1-1988/errno/ENODEV.c \
+ src/POSIX.1-1988/errno/ENOENT.c \
+ src/POSIX.1-1988/errno/ENOEXEC.c \
+ src/POSIX.1-1988/errno/ENOLCK.c \
+ src/POSIX.1-1988/errno/ENOMEM.c \
+ src/POSIX.1-1988/errno/ENOSPC.c \
+ src/POSIX.1-1988/errno/ENOSYS.c \
+ src/POSIX.1-1988/errno/ENOTDIR.c \
+ src/POSIX.1-1988/errno/ENOTEMPTY.c \
+ src/POSIX.1-1988/errno/ENOTTY.c \
+ src/POSIX.1-1988/errno/ENXIO.c \
+ src/POSIX.1-1988/errno/EPERM.c \
+ src/POSIX.1-1988/errno/EPIPE.c \
+ src/POSIX.1-1988/errno/EROFS.c \
+ src/POSIX.1-1988/errno/ESPIPE.c \
+ src/POSIX.1-1988/errno/ESRCH.c \
+ src/POSIX.1-1988/errno/EXDEV.c
$(INCDIR)/errno.h: $(errno_h_SOURCES)
sh mkh.sh $@ $(errno_h_SOURCES)
+fcntl_h_SOURCES = \
+ src/POSIX.1-1988/fcntl/FD_CLOEXEC.c \
+ src/POSIX.1-1988/fcntl/F_DUPFD.c \
+ src/POSIX.1-1988/fcntl/F_GETFD.c \
+ src/POSIX.1-1988/fcntl/F_GETFL.c \
+ src/POSIX.1-1988/fcntl/F_GETLK.c \
+ src/POSIX.1-1988/fcntl/F_RDLCK.c \
+ src/POSIX.1-1988/fcntl/F_SETFD.c \
+ src/POSIX.1-1988/fcntl/F_SETFL.c \
+ src/POSIX.1-1988/fcntl/F_SETLK.c \
+ src/POSIX.1-1988/fcntl/F_SETLKW.c \
+ src/POSIX.1-1988/fcntl/F_UNLCK.c \
+ src/POSIX.1-1988/fcntl/F_WRLCK.c \
+ src/POSIX.1-1988/fcntl/O_ACCMODE.c \
+ src/POSIX.1-1988/fcntl/O_APPEND.c \
+ src/POSIX.1-1988/fcntl/O_CREAT.c \
+ src/POSIX.1-1988/fcntl/O_EXCL.c \
+ src/POSIX.1-1988/fcntl/O_NOCTTY.c \
+ src/POSIX.1-1988/fcntl/O_NONBLOCK.c \
+ src/POSIX.1-1988/fcntl/O_RDONLY.c \
+ src/POSIX.1-1988/fcntl/O_RDWR.c \
+ src/POSIX.1-1988/fcntl/O_TRUNC.c \
+ src/POSIX.1-1988/fcntl/O_WRONLY.c \
+ src/POSIX.1-1988/fcntl/creat.c \
+ src/POSIX.1-1988/fcntl/fcntl.c \
+ src/POSIX.1-1988/fcntl/open.c \
+ src/POSIX.1-1988/fcntl/struct_flock.c
+
+$(INCDIR)/fcntl.h: $(fcntl_h_SOURCES)
+ sh mkh.sh $@ $(fcntl_h_SOURCES)
+
float_h_SOURCES = \
- std/9899-1990/float/DBL_DIG.c \
- std/9899-1990/float/DBL_EPSILON.c \
- std/9899-1990/float/DBL_MANT_DIG.c \
- std/9899-1990/float/DBL_MAX.c \
- std/9899-1990/float/DBL_MAX_10_EXP.c \
- std/9899-1990/float/DBL_MAX_EXP.c \
- std/9899-1990/float/DBL_MIN.c \
- std/9899-1990/float/DBL_MIN_10_EXP.c \
- std/9899-1990/float/DBL_MIN_EXP.c \
- std/9899-1990/float/FLT_DIG.c \
- std/9899-1990/float/FLT_EPSILON.c \
- std/9899-1990/float/FLT_MANT_DIG.c \
- std/9899-1990/float/FLT_MAX.c \
- std/9899-1990/float/FLT_MAX_10_EXP.c \
- std/9899-1990/float/FLT_MAX_EXP.c \
- std/9899-1990/float/FLT_MIN.c \
- std/9899-1990/float/FLT_MIN_10_EXP.c \
- std/9899-1990/float/FLT_MIN_EXP.c \
- std/9899-1990/float/FLT_RADIX.c \
- std/9899-1990/float/FLT_ROUNDS.c \
- std/9899-1990/float/LDBL_DIG.c \
- std/9899-1990/float/LDBL_EPSILON.c \
- std/9899-1990/float/LDBL_MANT_DIG.c \
- std/9899-1990/float/LDBL_MAX.c \
- std/9899-1990/float/LDBL_MAX_10_EXP.c \
- std/9899-1990/float/LDBL_MAX_EXP.c \
- std/9899-1990/float/LDBL_MIN.c \
- std/9899-1990/float/LDBL_MIN_10_EXP.c \
- std/9899-1990/float/LDBL_MIN_EXP.c
+ src/9899-1990/float/DBL_DIG.c \
+ src/9899-1990/float/DBL_EPSILON.c \
+ src/9899-1990/float/DBL_MANT_DIG.c \
+ src/9899-1990/float/DBL_MAX.c \
+ src/9899-1990/float/DBL_MAX_10_EXP.c \
+ src/9899-1990/float/DBL_MAX_EXP.c \
+ src/9899-1990/float/DBL_MIN.c \
+ src/9899-1990/float/DBL_MIN_10_EXP.c \
+ src/9899-1990/float/DBL_MIN_EXP.c \
+ src/9899-1990/float/FLT_DIG.c \
+ src/9899-1990/float/FLT_EPSILON.c \
+ src/9899-1990/float/FLT_MANT_DIG.c \
+ src/9899-1990/float/FLT_MAX.c \
+ src/9899-1990/float/FLT_MAX_10_EXP.c \
+ src/9899-1990/float/FLT_MAX_EXP.c \
+ src/9899-1990/float/FLT_MIN.c \
+ src/9899-1990/float/FLT_MIN_10_EXP.c \
+ src/9899-1990/float/FLT_MIN_EXP.c \
+ src/9899-1990/float/FLT_RADIX.c \
+ src/9899-1990/float/FLT_ROUNDS.c \
+ src/9899-1990/float/LDBL_DIG.c \
+ src/9899-1990/float/LDBL_EPSILON.c \
+ src/9899-1990/float/LDBL_MANT_DIG.c \
+ src/9899-1990/float/LDBL_MAX.c \
+ src/9899-1990/float/LDBL_MAX_10_EXP.c \
+ src/9899-1990/float/LDBL_MAX_EXP.c \
+ src/9899-1990/float/LDBL_MIN.c \
+ src/9899-1990/float/LDBL_MIN_10_EXP.c \
+ src/9899-1990/float/LDBL_MIN_EXP.c
$(INCDIR)/float.h: $(float_h_SOURCES)
sh mkh.sh $@ $(float_h_SOURCES)
+grp_h_SOURCES = \
+ src/POSIX.1-1988/grp/getgrgid.c \
+ src/POSIX.1-1988/grp/getgrnam.c \
+ src/POSIX.1-1988/grp/struct_group.c
+
+$(INCDIR)/grp.h: $(grp_h_SOURCES)
+ sh mkh.sh $@ $(grp_h_SOURCES)
+
limits_h_SOURCES = \
- std/9899-1990/limits/CHAR_BIT.c \
- std/9899-1990/limits/CHAR_MAX.c \
- std/9899-1990/limits/CHAR_MIN.c \
- std/9899-1990/limits/INT_MAX.c \
- std/9899-1990/limits/INT_MIN.c \
- std/9899-1990/limits/LONG_MAX.c \
- std/9899-1990/limits/LONG_MIN.c \
- std/9899-1990/limits/MB_LEN_MAX.c \
- std/9899-1990/limits/SCHAR_MAX.c \
- std/9899-1990/limits/SCHAR_MIN.c \
- std/9899-1990/limits/SHRT_MAX.c \
- std/9899-1990/limits/SHRT_MIN.c \
- std/9899-1990/limits/UCHAR_MAX.c \
- std/9899-1990/limits/UINT_MAX.c \
- std/9899-1990/limits/ULONG_MAX.c \
- std/9899-1990/limits/USHRT_MAX.c
+ src/9899-1990/limits/CHAR_BIT.c \
+ src/9899-1990/limits/CHAR_MAX.c \
+ src/9899-1990/limits/CHAR_MIN.c \
+ src/9899-1990/limits/INT_MAX.c \
+ src/9899-1990/limits/INT_MIN.c \
+ src/9899-1990/limits/LONG_MAX.c \
+ src/9899-1990/limits/LONG_MIN.c \
+ src/9899-1990/limits/MB_LEN_MAX.c \
+ src/9899-1990/limits/SCHAR_MAX.c \
+ src/9899-1990/limits/SCHAR_MIN.c \
+ src/9899-1990/limits/SHRT_MAX.c \
+ src/9899-1990/limits/SHRT_MIN.c \
+ src/9899-1990/limits/UCHAR_MAX.c \
+ src/9899-1990/limits/UINT_MAX.c \
+ src/9899-1990/limits/ULONG_MAX.c \
+ src/9899-1990/limits/USHRT_MAX.c \
+ src/POSIX.1-1988/limits/ARG_MAX.c \
+ src/POSIX.1-1988/limits/CHILD_MAX.c \
+ src/POSIX.1-1988/limits/LINK_MAX.c \
+ src/POSIX.1-1988/limits/MAX_CANON.c \
+ src/POSIX.1-1988/limits/MAX_INPUT.c \
+ src/POSIX.1-1988/limits/NAME_MAX.c \
+ src/POSIX.1-1988/limits/NGROUPS_MAX.c \
+ src/POSIX.1-1988/limits/OPEN_MAX.c \
+ src/POSIX.1-1988/limits/PATH_MAX.c \
+ src/POSIX.1-1988/limits/PIPE_BUF.c \
+ src/POSIX.1-1988/limits/_POSIX_ARG_MAX.c \
+ src/POSIX.1-1988/limits/_POSIX_CHILD_MAX.c \
+ src/POSIX.1-1988/limits/_POSIX_LINK_MAX.c \
+ src/POSIX.1-1988/limits/_POSIX_MAX_CANON.c \
+ src/POSIX.1-1988/limits/_POSIX_MAX_INPUT.c \
+ src/POSIX.1-1988/limits/_POSIX_NAME_MAX.c \
+ src/POSIX.1-1988/limits/_POSIX_NGROUPS_MAX.c \
+ src/POSIX.1-1988/limits/_POSIX_OPEN_MAX.c \
+ src/POSIX.1-1988/limits/_POSIX_PATH_MAX.c \
+ src/POSIX.1-1988/limits/_POSIX_PIPE_BUF.c \
+ src/POSIX.1-1990/limits/SSIZE_MAX.c \
+ src/POSIX.1-1990/limits/STREAM_MAX.c \
+ src/POSIX.1-1990/limits/TZNAME_MAX.c \
+ src/POSIX.1-1990/limits/_POSIX_SSIZE_MAX.c \
+ src/POSIX.1-1990/limits/_POSIX_STREAM_MAX.c \
+ src/POSIX.1-1990/limits/_POSIX_TZNAME_MAX.c
$(INCDIR)/limits.h: $(limits_h_SOURCES)
sh mkh.sh $@ $(limits_h_SOURCES)
locale_h_SOURCES = \
- std/9899-1990/locale/LC_ALL.c \
- std/9899-1990/locale/LC_COLLATE.c \
- std/9899-1990/locale/LC_CTYPE.c \
- std/9899-1990/locale/LC_MONETARY.c \
- std/9899-1990/locale/LC_NUMERIC.c \
- std/9899-1990/locale/LC_TIME.c \
- std/9899-1990/locale/localeconv.c \
- std/9899-1990/locale/setlocale.c \
- std/9899-1990/locale/struct_lconv.c \
- std/9899-1990/locale/NULL.ref \
- std/9899-1990/stddef/NULL.c
+ src/9899-1990/locale/LC_ALL.c \
+ src/9899-1990/locale/LC_COLLATE.c \
+ src/9899-1990/locale/LC_CTYPE.c \
+ src/9899-1990/locale/LC_MONETARY.c \
+ src/9899-1990/locale/LC_NUMERIC.c \
+ src/9899-1990/locale/LC_TIME.c \
+ src/9899-1990/locale/localeconv.c \
+ src/9899-1990/locale/setlocale.c \
+ src/9899-1990/locale/struct_lconv.c \
+ src/9899-1990/locale/NULL.ref \
+ src/9899-1990/stddef/NULL.c
$(INCDIR)/locale.h: $(locale_h_SOURCES)
sh mkh.sh $@ $(locale_h_SOURCES)
math_h_SOURCES = \
- std/9899-1990/math/HUGE_VAL.c \
- std/9899-1990/math/acos.c \
- std/9899-1990/math/asin.c \
- std/9899-1990/math/atan.c \
- std/9899-1990/math/atan2.c \
- std/9899-1990/math/ceil.c \
- std/9899-1990/math/cos.c \
- std/9899-1990/math/cosh.c \
- std/9899-1990/math/exp.c \
- std/9899-1990/math/fabs.c \
- std/9899-1990/math/floor.c \
- std/9899-1990/math/fmod.c \
- std/9899-1990/math/frexp.c \
- std/9899-1990/math/ldexp.c \
- std/9899-1990/math/log.c \
- std/9899-1990/math/log10.c \
- std/9899-1990/math/modf.c \
- std/9899-1990/math/pow.c \
- std/9899-1990/math/sin.c \
- std/9899-1990/math/sinh.c \
- std/9899-1990/math/sqrt.c \
- std/9899-1990/math/tan.c \
- std/9899-1990/math/tanh.c
+ src/9899-1990/math/HUGE_VAL.c \
+ src/9899-1990/math/acos.c \
+ src/9899-1990/math/asin.c \
+ src/9899-1990/math/atan.c \
+ src/9899-1990/math/atan2.c \
+ src/9899-1990/math/ceil.c \
+ src/9899-1990/math/cos.c \
+ src/9899-1990/math/cosh.c \
+ src/9899-1990/math/exp.c \
+ src/9899-1990/math/fabs.c \
+ src/9899-1990/math/floor.c \
+ src/9899-1990/math/fmod.c \
+ src/9899-1990/math/frexp.c \
+ src/9899-1990/math/ldexp.c \
+ src/9899-1990/math/log.c \
+ src/9899-1990/math/log10.c \
+ src/9899-1990/math/modf.c \
+ src/9899-1990/math/pow.c \
+ src/9899-1990/math/sin.c \
+ src/9899-1990/math/sinh.c \
+ src/9899-1990/math/sqrt.c \
+ src/9899-1990/math/tan.c \
+ src/9899-1990/math/tanh.c
$(INCDIR)/math.h: $(math_h_SOURCES)
sh mkh.sh $@ $(math_h_SOURCES)
+pwd_h_SOURCES = \
+ src/POSIX.1-1988/pwd/getpwnam.c \
+ src/POSIX.1-1988/pwd/getpwuid.c \
+ src/POSIX.1-1988/pwd/struct_passwd.c
+
+$(INCDIR)/pwd.h: $(pwd_h_SOURCES)
+ sh mkh.sh $@ $(pwd_h_SOURCES)
+
setjmp_h_SOURCES = \
- std/9899-1990/setjmp/jmp_buf.c \
- std/9899-1990/setjmp/longjmp.c \
- std/9899-1990/setjmp/setjmp.c
+ src/9899-1990/setjmp/jmp_buf.c \
+ src/9899-1990/setjmp/longjmp.c \
+ src/9899-1990/setjmp/setjmp.c \
+ src/POSIX.1-1988/setjmp/sigjmp_buf.c \
+ src/POSIX.1-1988/setjmp/siglongjmp.c \
+ src/POSIX.1-1988/setjmp/sigsetjmp.c
$(INCDIR)/setjmp.h: $(setjmp_h_SOURCES)
sh mkh.sh $@ $(setjmp_h_SOURCES)
signal_h_SOURCES = \
- std/9899-1990/signal/SIGABRT.c \
- std/9899-1990/signal/SIGFPE.c \
- std/9899-1990/signal/SIGILL.c \
- std/9899-1990/signal/SIGINT.c \
- std/9899-1990/signal/SIGSEGV.c \
- std/9899-1990/signal/SIGTERM.c \
- std/9899-1990/signal/SIG_DFL.c \
- std/9899-1990/signal/SIG_ERR.c \
- std/9899-1990/signal/SIG_IGN.c \
- std/9899-1990/signal/raise.c \
- std/9899-1990/signal/sig_atomic_t.c \
- std/9899-1990/signal/signal.c
+ src/9899-1990/signal/SIGABRT.c \
+ src/9899-1990/signal/SIGFPE.c \
+ src/9899-1990/signal/SIGILL.c \
+ src/9899-1990/signal/SIGINT.c \
+ src/9899-1990/signal/SIGSEGV.c \
+ src/9899-1990/signal/SIGTERM.c \
+ src/9899-1990/signal/SIG_DFL.c \
+ src/9899-1990/signal/SIG_ERR.c \
+ src/9899-1990/signal/SIG_IGN.c \
+ src/9899-1990/signal/raise.c \
+ src/9899-1990/signal/sig_atomic_t.c \
+ src/9899-1990/signal/signal.c \
+ src/POSIX.1-1988/signal/SA_NOCLDSTOP.c \
+ src/POSIX.1-1988/signal/SIGALRM.c \
+ src/POSIX.1-1988/signal/SIGCHLD.c \
+ src/POSIX.1-1988/signal/SIGCONT.c \
+ src/POSIX.1-1988/signal/SIGHUP.c \
+ src/POSIX.1-1988/signal/SIGKILL.c \
+ src/POSIX.1-1988/signal/SIGPIPE.c \
+ src/POSIX.1-1988/signal/SIGQUIT.c \
+ src/POSIX.1-1988/signal/SIGSTOP.c \
+ src/POSIX.1-1988/signal/SIGTSTP.c \
+ src/POSIX.1-1988/signal/SIGTTIN.c \
+ src/POSIX.1-1988/signal/SIGTTOU.c \
+ src/POSIX.1-1988/signal/SIGUSR1.c \
+ src/POSIX.1-1988/signal/SIGUSR2.c \
+ src/POSIX.1-1988/signal/SIG_BLOCK.c \
+ src/POSIX.1-1988/signal/SIG_SETMASK.c \
+ src/POSIX.1-1988/signal/SIG_UNBLOCK.c \
+ src/POSIX.1-1988/signal/kill.c \
+ src/POSIX.1-1988/signal/sigaction.c \
+ src/POSIX.1-1988/signal/sigaddset.c \
+ src/POSIX.1-1988/signal/sigdelset.c \
+ src/POSIX.1-1988/signal/sigemptyset.c \
+ src/POSIX.1-1988/signal/sigfillset.c \
+ src/POSIX.1-1988/signal/sigismember.c \
+ src/POSIX.1-1988/signal/sigpending.c \
+ src/POSIX.1-1988/signal/sigprocmask.c \
+ src/POSIX.1-1988/signal/sigset_t.c \
+ src/POSIX.1-1988/signal/sigsuspend.c \
+ src/POSIX.1-1988/signal/struct_sigaction.c
$(INCDIR)/signal.h: $(signal_h_SOURCES)
sh mkh.sh $@ $(signal_h_SOURCES)
stdarg_h_SOURCES = \
- std/9899-1990/stdarg/va_arg.c \
- std/9899-1990/stdarg/va_end.c \
- std/9899-1990/stdarg/va_list.c \
- std/9899-1990/stdarg/va_start.c
+ src/9899-1990/stdarg/va_arg.c \
+ src/9899-1990/stdarg/va_end.c \
+ src/9899-1990/stdarg/va_list.c \
+ src/9899-1990/stdarg/va_start.c
$(INCDIR)/stdarg.h: $(stdarg_h_SOURCES)
sh mkh.sh $@ $(stdarg_h_SOURCES)
stddef_h_SOURCES = \
- std/9899-1990/stddef/NULL.c \
- std/9899-1990/stddef/offsetof.c \
- std/9899-1990/stddef/ptrdiff_t.c \
- std/9899-1990/stddef/size_t.c \
- std/9899-1990/stddef/wchar_t.c
+ src/9899-1990/stddef/NULL.c \
+ src/9899-1990/stddef/offsetof.c \
+ src/9899-1990/stddef/ptrdiff_t.c \
+ src/9899-1990/stddef/size_t.c \
+ src/9899-1990/stddef/wchar_t.c
$(INCDIR)/stddef.h: $(stddef_h_SOURCES)
sh mkh.sh $@ $(stddef_h_SOURCES)
stdio_h_SOURCES = \
- std/9899-1990/stdio/BUFSIZ.c \
- std/9899-1990/stdio/EOF.c \
- std/9899-1990/stdio/FILE.c \
- std/9899-1990/stdio/FILENAME_MAX.c \
- std/9899-1990/stdio/FOPEN_MAX.c \
- std/9899-1990/stdio/L_tmpnam.c \
- std/9899-1990/stdio/SEEK_CUR.c \
- std/9899-1990/stdio/SEEK_END.c \
- std/9899-1990/stdio/SEEK_SET.c \
- std/9899-1990/stdio/TMP_MAX.c \
- std/9899-1990/stdio/_IOFBF.c \
- std/9899-1990/stdio/_IOLBF.c \
- std/9899-1990/stdio/_IONBF.c \
- std/9899-1990/stdio/clearerr.c \
- std/9899-1990/stdio/fclose.c \
- std/9899-1990/stdio/feof.c \
- std/9899-1990/stdio/ferror.c \
- std/9899-1990/stdio/fflush.c \
- std/9899-1990/stdio/fgetc.c \
- std/9899-1990/stdio/fgetpos.c \
- std/9899-1990/stdio/fgets.c \
- std/9899-1990/stdio/fopen.c \
- std/9899-1990/stdio/fpos_t.c \
- std/9899-1990/stdio/fprintf.c \
- std/9899-1990/stdio/fputc.c \
- std/9899-1990/stdio/fputs.c \
- std/9899-1990/stdio/fread.c \
- std/9899-1990/stdio/freopen.c \
- std/9899-1990/stdio/fscanf.c \
- std/9899-1990/stdio/fseek.c \
- std/9899-1990/stdio/fsetpos.c \
- std/9899-1990/stdio/ftell.c \
- std/9899-1990/stdio/fwrite.c \
- std/9899-1990/stdio/getc.c \
- std/9899-1990/stdio/getchar.c \
- std/9899-1990/stdio/gets.c \
- std/9899-1990/stdio/perror.c \
- std/9899-1990/stdio/printf.c \
- std/9899-1990/stdio/putc.c \
- std/9899-1990/stdio/putchar.c \
- std/9899-1990/stdio/puts.c \
- std/9899-1990/stdio/remove.c \
- std/9899-1990/stdio/rename.c \
- std/9899-1990/stdio/rewind.c \
- std/9899-1990/stdio/scanf.c \
- std/9899-1990/stdio/setbuf.c \
- std/9899-1990/stdio/setvbuf.c \
- std/9899-1990/stdio/sprintf.c \
- std/9899-1990/stdio/sscanf.c \
- std/9899-1990/stdio/stderr.c \
- std/9899-1990/stdio/stdin.c \
- std/9899-1990/stdio/stdout.c \
- std/9899-1990/stdio/tmpfile.c \
- std/9899-1990/stdio/tmpnam.c \
- std/9899-1990/stdio/ungetc.c \
- std/9899-1990/stdio/vfprintf.c \
- std/9899-1990/stdio/vprintf.c \
- std/9899-1990/stdio/vsprintf.c \
- std/9899-1990/stdio/NULL.ref \
- std/9899-1990/stddef/NULL.c \
- std/9899-1990/stdio/size_t.ref \
- std/9899-1990/stddef/size_t.c \
- std/9899-1990/stdio/va_list.ref \
- std/9899-1990/stdarg/va_list.c
+ src/9899-1990/stdio/BUFSIZ.c \
+ src/9899-1990/stdio/EOF.c \
+ src/9899-1990/stdio/FILE.c \
+ src/9899-1990/stdio/FILENAME_MAX.c \
+ src/9899-1990/stdio/FOPEN_MAX.c \
+ src/9899-1990/stdio/L_tmpnam.c \
+ src/9899-1990/stdio/SEEK_CUR.c \
+ src/9899-1990/stdio/SEEK_END.c \
+ src/9899-1990/stdio/SEEK_SET.c \
+ src/9899-1990/stdio/TMP_MAX.c \
+ src/9899-1990/stdio/_IOFBF.c \
+ src/9899-1990/stdio/_IOLBF.c \
+ src/9899-1990/stdio/_IONBF.c \
+ src/9899-1990/stdio/clearerr.c \
+ src/9899-1990/stdio/fclose.c \
+ src/9899-1990/stdio/feof.c \
+ src/9899-1990/stdio/ferror.c \
+ src/9899-1990/stdio/fflush.c \
+ src/9899-1990/stdio/fgetc.c \
+ src/9899-1990/stdio/fgetpos.c \
+ src/9899-1990/stdio/fgets.c \
+ src/9899-1990/stdio/fopen.c \
+ src/9899-1990/stdio/fpos_t.c \
+ src/9899-1990/stdio/fprintf.c \
+ src/9899-1990/stdio/fputc.c \
+ src/9899-1990/stdio/fputs.c \
+ src/9899-1990/stdio/fread.c \
+ src/9899-1990/stdio/freopen.c \
+ src/9899-1990/stdio/fscanf.c \
+ src/9899-1990/stdio/fseek.c \
+ src/9899-1990/stdio/fsetpos.c \
+ src/9899-1990/stdio/ftell.c \
+ src/9899-1990/stdio/fwrite.c \
+ src/9899-1990/stdio/getc.c \
+ src/9899-1990/stdio/getchar.c \
+ src/9899-1990/stdio/gets.c \
+ src/9899-1990/stdio/perror.c \
+ src/9899-1990/stdio/printf.c \
+ src/9899-1990/stdio/putc.c \
+ src/9899-1990/stdio/putchar.c \
+ src/9899-1990/stdio/puts.c \
+ src/9899-1990/stdio/remove.c \
+ src/9899-1990/stdio/rename.c \
+ src/9899-1990/stdio/rewind.c \
+ src/9899-1990/stdio/scanf.c \
+ src/9899-1990/stdio/setbuf.c \
+ src/9899-1990/stdio/setvbuf.c \
+ src/9899-1990/stdio/sprintf.c \
+ src/9899-1990/stdio/sscanf.c \
+ src/9899-1990/stdio/stderr.c \
+ src/9899-1990/stdio/stdin.c \
+ src/9899-1990/stdio/stdout.c \
+ src/9899-1990/stdio/tmpfile.c \
+ src/9899-1990/stdio/tmpnam.c \
+ src/9899-1990/stdio/ungetc.c \
+ src/9899-1990/stdio/vfprintf.c \
+ src/9899-1990/stdio/vprintf.c \
+ src/9899-1990/stdio/vsprintf.c \
+ src/9899-1990/stdio/NULL.ref \
+ src/9899-1990/stddef/NULL.c \
+ src/9899-1990/stdio/size_t.ref \
+ src/9899-1990/stddef/size_t.c \
+ src/9899-1990/stdio/va_list.ref \
+ src/9899-1990/stdarg/va_list.c \
+ src/POSIX.1-1988/stdio/L_ctermid.c \
+ src/POSIX.1-1988/stdio/L_cuserid.c \
+ src/POSIX.1-1988/stdio/fdopen.c \
+ src/POSIX.1-1988/stdio/fileno.c
$(INCDIR)/stdio.h: $(stdio_h_SOURCES)
sh mkh.sh $@ $(stdio_h_SOURCES)
stdlib_h_SOURCES = \
- std/9899-1990/stdlib/EXIT_FAILURE.c \
- std/9899-1990/stdlib/EXIT_SUCCESS.c \
- std/9899-1990/stdlib/MB_CUR_MAX.c \
- std/9899-1990/stdlib/RAND_MAX.c \
- std/9899-1990/stdlib/abort.c \
- std/9899-1990/stdlib/abs.c \
- std/9899-1990/stdlib/atexit.c \
- std/9899-1990/stdlib/atof.c \
- std/9899-1990/stdlib/atoi.c \
- std/9899-1990/stdlib/atol.c \
- std/9899-1990/stdlib/bsearch.c \
- std/9899-1990/stdlib/calloc.c \
- std/9899-1990/stdlib/div.c \
- std/9899-1990/stdlib/div_t.c \
- std/9899-1990/stdlib/exit.c \
- std/9899-1990/stdlib/free.c \
- std/9899-1990/stdlib/getenv.c \
- std/9899-1990/stdlib/labs.c \
- std/9899-1990/stdlib/ldiv.c \
- std/9899-1990/stdlib/ldiv_t.c \
- std/9899-1990/stdlib/malloc.c \
- std/9899-1990/stdlib/mblen.c \
- std/9899-1990/stdlib/mbstowcs.c \
- std/9899-1990/stdlib/mbtowc.c \
- std/9899-1990/stdlib/qsort.c \
- std/9899-1990/stdlib/rand.c \
- std/9899-1990/stdlib/realloc.c \
- std/9899-1990/stdlib/srand.c \
- std/9899-1990/stdlib/strtod.c \
- std/9899-1990/stdlib/strtol.c \
- std/9899-1990/stdlib/strtoul.c \
- std/9899-1990/stdlib/system.c \
- std/9899-1990/stdlib/wcstombs.c \
- std/9899-1990/stdlib/wctomb.c \
- std/9899-1990/stdlib/NULL.ref \
- std/9899-1990/stddef/NULL.c \
- std/9899-1990/stdlib/size_t.ref \
- std/9899-1990/stddef/size_t.c \
- std/9899-1990/stdlib/wchar_t.ref \
- std/9899-1990/stddef/wchar_t.c
+ src/9899-1990/stdlib/EXIT_FAILURE.c \
+ src/9899-1990/stdlib/EXIT_SUCCESS.c \
+ src/9899-1990/stdlib/MB_CUR_MAX.c \
+ src/9899-1990/stdlib/RAND_MAX.c \
+ src/9899-1990/stdlib/abort.c \
+ src/9899-1990/stdlib/abs.c \
+ src/9899-1990/stdlib/atexit.c \
+ src/9899-1990/stdlib/atof.c \
+ src/9899-1990/stdlib/atoi.c \
+ src/9899-1990/stdlib/atol.c \
+ src/9899-1990/stdlib/bsearch.c \
+ src/9899-1990/stdlib/calloc.c \
+ src/9899-1990/stdlib/div.c \
+ src/9899-1990/stdlib/div_t.c \
+ src/9899-1990/stdlib/exit.c \
+ src/9899-1990/stdlib/free.c \
+ src/9899-1990/stdlib/getenv.c \
+ src/9899-1990/stdlib/labs.c \
+ src/9899-1990/stdlib/ldiv.c \
+ src/9899-1990/stdlib/ldiv_t.c \
+ src/9899-1990/stdlib/malloc.c \
+ src/9899-1990/stdlib/mblen.c \
+ src/9899-1990/stdlib/mbstowcs.c \
+ src/9899-1990/stdlib/mbtowc.c \
+ src/9899-1990/stdlib/qsort.c \
+ src/9899-1990/stdlib/rand.c \
+ src/9899-1990/stdlib/realloc.c \
+ src/9899-1990/stdlib/srand.c \
+ src/9899-1990/stdlib/strtod.c \
+ src/9899-1990/stdlib/strtol.c \
+ src/9899-1990/stdlib/strtoul.c \
+ src/9899-1990/stdlib/system.c \
+ src/9899-1990/stdlib/wcstombs.c \
+ src/9899-1990/stdlib/wctomb.c \
+ src/9899-1990/stdlib/NULL.ref \
+ src/9899-1990/stddef/NULL.c \
+ src/9899-1990/stdlib/size_t.ref \
+ src/9899-1990/stddef/size_t.c \
+ src/9899-1990/stdlib/wchar_t.ref \
+ src/9899-1990/stddef/wchar_t.c
$(INCDIR)/stdlib.h: $(stdlib_h_SOURCES)
sh mkh.sh $@ $(stdlib_h_SOURCES)
string_h_SOURCES = \
- std/9899-1990/string/memchr.c \
- std/9899-1990/string/memcmp.c \
- std/9899-1990/string/memcpy.c \
- std/9899-1990/string/memmove.c \
- std/9899-1990/string/memset.c \
- std/9899-1990/string/strcat.c \
- std/9899-1990/string/strchr.c \
- std/9899-1990/string/strcmp.c \
- std/9899-1990/string/strcoll.c \
- std/9899-1990/string/strcpy.c \
- std/9899-1990/string/strcspn.c \
- std/9899-1990/string/strerror.c \
- std/9899-1990/string/strlen.c \
- std/9899-1990/string/strncat.c \
- std/9899-1990/string/strncmp.c \
- std/9899-1990/string/strncpy.c \
- std/9899-1990/string/strpbrk.c \
- std/9899-1990/string/strrchr.c \
- std/9899-1990/string/strspn.c \
- std/9899-1990/string/strstr.c \
- std/9899-1990/string/strtok.c \
- std/9899-1990/string/strxfrm.c \
- std/9899-1990/string/NULL.ref \
- std/9899-1990/stddef/NULL.c \
- std/9899-1990/string/size_t.ref \
- std/9899-1990/stddef/size_t.c
+ src/9899-1990/string/memchr.c \
+ src/9899-1990/string/memcmp.c \
+ src/9899-1990/string/memcpy.c \
+ src/9899-1990/string/memmove.c \
+ src/9899-1990/string/memset.c \
+ src/9899-1990/string/strcat.c \
+ src/9899-1990/string/strchr.c \
+ src/9899-1990/string/strcmp.c \
+ src/9899-1990/string/strcoll.c \
+ src/9899-1990/string/strcpy.c \
+ src/9899-1990/string/strcspn.c \
+ src/9899-1990/string/strerror.c \
+ src/9899-1990/string/strlen.c \
+ src/9899-1990/string/strncat.c \
+ src/9899-1990/string/strncmp.c \
+ src/9899-1990/string/strncpy.c \
+ src/9899-1990/string/strpbrk.c \
+ src/9899-1990/string/strrchr.c \
+ src/9899-1990/string/strspn.c \
+ src/9899-1990/string/strstr.c \
+ src/9899-1990/string/strtok.c \
+ src/9899-1990/string/strxfrm.c \
+ src/9899-1990/string/NULL.ref \
+ src/9899-1990/stddef/NULL.c \
+ src/9899-1990/string/size_t.ref \
+ src/9899-1990/stddef/size_t.c
$(INCDIR)/string.h: $(string_h_SOURCES)
sh mkh.sh $@ $(string_h_SOURCES)
+sys_stat_h_SOURCES = \
+ src/POSIX.1-1988/sys/stat/S_IRGRP.c \
+ src/POSIX.1-1988/sys/stat/S_IROTH.c \
+ src/POSIX.1-1988/sys/stat/S_IRUSR.c \
+ src/POSIX.1-1988/sys/stat/S_IRWXG.c \
+ src/POSIX.1-1988/sys/stat/S_IRWXO.c \
+ src/POSIX.1-1988/sys/stat/S_IRWXU.c \
+ src/POSIX.1-1988/sys/stat/S_ISCHR.c \
+ src/POSIX.1-1988/sys/stat/S_ISDIR.c \
+ src/POSIX.1-1988/sys/stat/S_ISFIFO.c \
+ src/POSIX.1-1988/sys/stat/S_ISGID.c \
+ src/POSIX.1-1988/sys/stat/S_ISREG.c \
+ src/POSIX.1-1988/sys/stat/S_ISUID.c \
+ src/POSIX.1-1988/sys/stat/S_IWGRP.c \
+ src/POSIX.1-1988/sys/stat/S_IWOTH.c \
+ src/POSIX.1-1988/sys/stat/S_IWUSR.c \
+ src/POSIX.1-1988/sys/stat/S_IXGRP.c \
+ src/POSIX.1-1988/sys/stat/S_IXOTH.c \
+ src/POSIX.1-1988/sys/stat/S_IXUSR.c \
+ src/POSIX.1-1988/sys/stat/chmod.c \
+ src/POSIX.1-1988/sys/stat/fstat.c \
+ src/POSIX.1-1988/sys/stat/mkdir.c \
+ src/POSIX.1-1988/sys/stat/mkfifo.c \
+ src/POSIX.1-1988/sys/stat/stat.c \
+ src/POSIX.1-1988/sys/stat/struct_stat.c \
+ src/POSIX.1-1988/sys/stat/umask.c
+
+$(INCDIR)/sys/stat.h: $(sys_stat_h_SOURCES)
+ sh mkh.sh $@ $(sys_stat_h_SOURCES)
+
+sys_times_h_SOURCES = \
+ src/POSIX.1-1988/sys/times/struct_tms.c \
+ src/POSIX.1-1988/sys/times/times.c
+
+$(INCDIR)/sys/times.h: $(sys_times_h_SOURCES)
+ sh mkh.sh $@ $(sys_times_h_SOURCES)
+
+sys_types_h_SOURCES = \
+ src/POSIX.1-1988/sys/types/dev_t.c \
+ src/POSIX.1-1988/sys/types/gid_t.c \
+ src/POSIX.1-1988/sys/types/ino_t.c \
+ src/POSIX.1-1988/sys/types/mode_t.c \
+ src/POSIX.1-1988/sys/types/nlink_t.c \
+ src/POSIX.1-1988/sys/types/off_t.c \
+ src/POSIX.1-1988/sys/types/pid_t.c \
+ src/POSIX.1-1988/sys/types/uid_t.c \
+ src/POSIX.1-1990/sys/types/ssize_t.c
+
+$(INCDIR)/sys/types.h: $(sys_types_h_SOURCES)
+ sh mkh.sh $@ $(sys_types_h_SOURCES)
+
+sys_utsname_h_SOURCES = \
+ src/POSIX.1-1988/sys/utsname/struct_utsname.c \
+ src/POSIX.1-1988/sys/utsname/uname.c
+
+$(INCDIR)/sys/utsname.h: $(sys_utsname_h_SOURCES)
+ sh mkh.sh $@ $(sys_utsname_h_SOURCES)
+
+sys_wait_h_SOURCES = \
+ src/POSIX.1-1988/sys/wait/WEXITSTATUS.c \
+ src/POSIX.1-1988/sys/wait/WIFEXITED.c \
+ src/POSIX.1-1988/sys/wait/WIFSIGNALED.c \
+ src/POSIX.1-1988/sys/wait/WIFSTOPPED.c \
+ src/POSIX.1-1988/sys/wait/WNOHANG.c \
+ src/POSIX.1-1988/sys/wait/WSTOPSIG.c \
+ src/POSIX.1-1988/sys/wait/WTERMSIG.c \
+ src/POSIX.1-1988/sys/wait/WUNTRACED.c \
+ src/POSIX.1-1988/sys/wait/wait.c \
+ src/POSIX.1-1988/sys/wait/waitpid.c
+
+$(INCDIR)/sys/wait.h: $(sys_wait_h_SOURCES)
+ sh mkh.sh $@ $(sys_wait_h_SOURCES)
+
+tar_h_SOURCES = \
+ src/POSIX.1-1988/tar/AREGTYPE.c \
+ src/POSIX.1-1988/tar/BLKTYPE.c \
+ src/POSIX.1-1988/tar/CHRTYPE.c \
+ src/POSIX.1-1988/tar/CONTTYPE.c \
+ src/POSIX.1-1988/tar/DIRTYPE.c \
+ src/POSIX.1-1988/tar/FIFOTYPE.c \
+ src/POSIX.1-1988/tar/LNKTYPE.c \
+ src/POSIX.1-1988/tar/REGTYPE.c \
+ src/POSIX.1-1988/tar/SYMTYPE.c \
+ src/POSIX.1-1988/tar/TGEXEC.c \
+ src/POSIX.1-1988/tar/TGREAD.c \
+ src/POSIX.1-1988/tar/TGWRITE.c \
+ src/POSIX.1-1988/tar/TMAGIC.c \
+ src/POSIX.1-1988/tar/TMAGLEN.c \
+ src/POSIX.1-1988/tar/TOEXEC.c \
+ src/POSIX.1-1988/tar/TOREAD.c \
+ src/POSIX.1-1988/tar/TOWRITE.c \
+ src/POSIX.1-1988/tar/TSGID.c \
+ src/POSIX.1-1988/tar/TSUID.c \
+ src/POSIX.1-1988/tar/TSVTX.c \
+ src/POSIX.1-1988/tar/TUEXEC.c \
+ src/POSIX.1-1988/tar/TUREAD.c \
+ src/POSIX.1-1988/tar/TUWRITE.c \
+ src/POSIX.1-1988/tar/TVERSION.c \
+ src/POSIX.1-1988/tar/TVERSLEN.c
+
+$(INCDIR)/tar.h: $(tar_h_SOURCES)
+ sh mkh.sh $@ $(tar_h_SOURCES)
+
+termios_h_SOURCES = \
+ src/POSIX.1-1988/termios/B0.c \
+ src/POSIX.1-1988/termios/B110.c \
+ src/POSIX.1-1988/termios/B1200.c \
+ src/POSIX.1-1988/termios/B134.c \
+ src/POSIX.1-1988/termios/B150.c \
+ src/POSIX.1-1988/termios/B1800.c \
+ src/POSIX.1-1988/termios/B19200.c \
+ src/POSIX.1-1988/termios/B200.c \
+ src/POSIX.1-1988/termios/B2400.c \
+ src/POSIX.1-1988/termios/B300.c \
+ src/POSIX.1-1988/termios/B38400.c \
+ src/POSIX.1-1988/termios/B4800.c \
+ src/POSIX.1-1988/termios/B50.c \
+ src/POSIX.1-1988/termios/B600.c \
+ src/POSIX.1-1988/termios/B75.c \
+ src/POSIX.1-1988/termios/B9600.c \
+ src/POSIX.1-1988/termios/BRKINT.c \
+ src/POSIX.1-1988/termios/CLOCAL.c \
+ src/POSIX.1-1988/termios/CREAD.c \
+ src/POSIX.1-1988/termios/CS5.c \
+ src/POSIX.1-1988/termios/CS6.c \
+ src/POSIX.1-1988/termios/CS7.c \
+ src/POSIX.1-1988/termios/CS8.c \
+ src/POSIX.1-1988/termios/CSIZE.c \
+ src/POSIX.1-1988/termios/CSTOPB.c \
+ src/POSIX.1-1988/termios/ECHO.c \
+ src/POSIX.1-1988/termios/ECHOE.c \
+ src/POSIX.1-1988/termios/ECHOK.c \
+ src/POSIX.1-1988/termios/ECHONL.c \
+ src/POSIX.1-1988/termios/HUPCL.c \
+ src/POSIX.1-1988/termios/ICANON.c \
+ src/POSIX.1-1988/termios/ICRNL.c \
+ src/POSIX.1-1988/termios/IEXTEN.c \
+ src/POSIX.1-1988/termios/IGNBRK.c \
+ src/POSIX.1-1988/termios/IGNCR.c \
+ src/POSIX.1-1988/termios/IGNPAR.c \
+ src/POSIX.1-1988/termios/INLCR.c \
+ src/POSIX.1-1988/termios/INPCK.c \
+ src/POSIX.1-1988/termios/ISIG.c \
+ src/POSIX.1-1988/termios/ISTRIP.c \
+ src/POSIX.1-1988/termios/IXOFF.c \
+ src/POSIX.1-1988/termios/IXON.c \
+ src/POSIX.1-1988/termios/NCCS.c \
+ src/POSIX.1-1988/termios/NOFLSH.c \
+ src/POSIX.1-1988/termios/OPOST.c \
+ src/POSIX.1-1988/termios/PARENB.c \
+ src/POSIX.1-1988/termios/PARMRK.c \
+ src/POSIX.1-1988/termios/PARODD.c \
+ src/POSIX.1-1988/termios/TCIFLUSH.c \
+ src/POSIX.1-1988/termios/TCIOFF.c \
+ src/POSIX.1-1988/termios/TCIOFLUSH.c \
+ src/POSIX.1-1988/termios/TCION.c \
+ src/POSIX.1-1988/termios/TCOFLUSH.c \
+ src/POSIX.1-1988/termios/TCOOFF.c \
+ src/POSIX.1-1988/termios/TCOON.c \
+ src/POSIX.1-1988/termios/TCSADRAIN.c \
+ src/POSIX.1-1988/termios/TCSAFLUSH.c \
+ src/POSIX.1-1988/termios/TCSANOW.c \
+ src/POSIX.1-1988/termios/TOSTOP.c \
+ src/POSIX.1-1988/termios/VEOF.c \
+ src/POSIX.1-1988/termios/VEOL.c \
+ src/POSIX.1-1988/termios/VERASE.c \
+ src/POSIX.1-1988/termios/VINTR.c \
+ src/POSIX.1-1988/termios/VKILL.c \
+ src/POSIX.1-1988/termios/VMIN.c \
+ src/POSIX.1-1988/termios/VQUIT.c \
+ src/POSIX.1-1988/termios/VSTART.c \
+ src/POSIX.1-1988/termios/VSTOP.c \
+ src/POSIX.1-1988/termios/VSUSP.c \
+ src/POSIX.1-1988/termios/VTIME.c \
+ src/POSIX.1-1988/termios/cc_t.c \
+ src/POSIX.1-1988/termios/cfgetispeed.c \
+ src/POSIX.1-1988/termios/cfgetospeed.c \
+ src/POSIX.1-1988/termios/cfsetispeed.c \
+ src/POSIX.1-1988/termios/cfsetospeed.c \
+ src/POSIX.1-1988/termios/speed_t.c \
+ src/POSIX.1-1988/termios/struct_termios.c \
+ src/POSIX.1-1988/termios/tcdrain.c \
+ src/POSIX.1-1988/termios/tcflag_t.c \
+ src/POSIX.1-1988/termios/tcflow.c \
+ src/POSIX.1-1988/termios/tcflush.c \
+ src/POSIX.1-1988/termios/tcgetattr.c \
+ src/POSIX.1-1988/termios/tcsendbreak.c \
+ src/POSIX.1-1988/termios/tcsetattr.c
+
+$(INCDIR)/termios.h: $(termios_h_SOURCES)
+ sh mkh.sh $@ $(termios_h_SOURCES)
+
time_h_SOURCES = \
- std/9899-1990/time/CLOCKS_PER_SEC.c \
- std/9899-1990/time/asctime.c \
- std/9899-1990/time/clock.c \
- std/9899-1990/time/clock_t.c \
- std/9899-1990/time/ctime.c \
- std/9899-1990/time/difftime.c \
- std/9899-1990/time/gmtime.c \
- std/9899-1990/time/localtime.c \
- std/9899-1990/time/mktime.c \
- std/9899-1990/time/strftime.c \
- std/9899-1990/time/struct_tm.c \
- std/9899-1990/time/time.c \
- std/9899-1990/time/time_t.c \
- std/9899-1990/time/NULL.ref \
- std/9899-1990/stddef/NULL.c \
- std/9899-1990/time/size_t.ref \
- std/9899-1990/stddef/size_t.c
+ src/9899-1990/time/CLOCKS_PER_SEC.c \
+ src/9899-1990/time/asctime.c \
+ src/9899-1990/time/clock.c \
+ src/9899-1990/time/clock_t.c \
+ src/9899-1990/time/ctime.c \
+ src/9899-1990/time/difftime.c \
+ src/9899-1990/time/gmtime.c \
+ src/9899-1990/time/localtime.c \
+ src/9899-1990/time/mktime.c \
+ src/9899-1990/time/strftime.c \
+ src/9899-1990/time/struct_tm.c \
+ src/9899-1990/time/time.c \
+ src/9899-1990/time/time_t.c \
+ src/9899-1990/time/NULL.ref \
+ src/9899-1990/stddef/NULL.c \
+ src/9899-1990/time/size_t.ref \
+ src/9899-1990/stddef/size_t.c \
+ src/POSIX.1-1988/time/CLK_TCK.c \
+ src/POSIX.1-1988/time/tzname.c \
+ src/POSIX.1-1988/time/tzset.c
$(INCDIR)/time.h: $(time_h_SOURCES)
sh mkh.sh $@ $(time_h_SOURCES)
-headers: $(INCDIR)/assert.h $(INCDIR)/ctype.h $(INCDIR)/errno.h $(INCDIR)/float.h $(INCDIR)/limits.h $(INCDIR)/locale.h $(INCDIR)/math.h $(INCDIR)/setjmp.h $(INCDIR)/signal.h $(INCDIR)/stdarg.h $(INCDIR)/stddef.h $(INCDIR)/stdio.h $(INCDIR)/stdlib.h $(INCDIR)/string.h $(INCDIR)/time.h \ No newline at end of file
+unistd_h_SOURCES = \
+ src/POSIX.1-1988/unistd/F_OK.c \
+ src/POSIX.1-1988/unistd/R_OK.c \
+ src/POSIX.1-1988/unistd/STDERR_FILENO.c \
+ src/POSIX.1-1988/unistd/STDIN_FILENO.c \
+ src/POSIX.1-1988/unistd/STDOUT_FILENO.c \
+ src/POSIX.1-1988/unistd/W_OK.c \
+ src/POSIX.1-1988/unistd/X_OK.c \
+ src/POSIX.1-1988/unistd/_PC_CHOWN_RESTRICTED.c \
+ src/POSIX.1-1988/unistd/_PC_LINK_MAX.c \
+ src/POSIX.1-1988/unistd/_PC_MAX_CANON.c \
+ src/POSIX.1-1988/unistd/_PC_MAX_INPUT.c \
+ src/POSIX.1-1988/unistd/_PC_NAME_MAX.c \
+ src/POSIX.1-1988/unistd/_PC_NO_TRUNC.c \
+ src/POSIX.1-1988/unistd/_PC_PATH_MAX.c \
+ src/POSIX.1-1988/unistd/_PC_PIPE_BUF.c \
+ src/POSIX.1-1988/unistd/_PC_VDISABLE.c \
+ src/POSIX.1-1988/unistd/_POSIX_CHOWN_RESTRICTED.c \
+ src/POSIX.1-1988/unistd/_POSIX_JOB_CONTROL.c \
+ src/POSIX.1-1988/unistd/_POSIX_NO_TRUNC.c \
+ src/POSIX.1-1988/unistd/_POSIX_SAVED_IDS.c \
+ src/POSIX.1-1988/unistd/_POSIX_VDISABLE.c \
+ src/POSIX.1-1988/unistd/_POSIX_VERSION.c \
+ src/POSIX.1-1988/unistd/_SC_ARG_MAX.c \
+ src/POSIX.1-1988/unistd/_SC_CHILD_MAX.c \
+ src/POSIX.1-1988/unistd/_SC_CLK_TCK.c \
+ src/POSIX.1-1988/unistd/_SC_JOB_CONTROL.c \
+ src/POSIX.1-1988/unistd/_SC_NGROUPS_MAX.c \
+ src/POSIX.1-1988/unistd/_SC_OPEN_MAX.c \
+ src/POSIX.1-1988/unistd/_SC_SAVED_IDS.c \
+ src/POSIX.1-1988/unistd/_SC_VERSION.c \
+ src/POSIX.1-1988/unistd/_exit.c \
+ src/POSIX.1-1988/unistd/access.c \
+ src/POSIX.1-1988/unistd/alarm.c \
+ src/POSIX.1-1988/unistd/chdir.c \
+ src/POSIX.1-1988/unistd/chown.c \
+ src/POSIX.1-1988/unistd/close.c \
+ src/POSIX.1-1988/unistd/ctermid.c \
+ src/POSIX.1-1988/unistd/cuserid.c \
+ src/POSIX.1-1988/unistd/dup.c \
+ src/POSIX.1-1988/unistd/dup2.c \
+ src/POSIX.1-1988/unistd/execl.c \
+ src/POSIX.1-1988/unistd/execle.c \
+ src/POSIX.1-1988/unistd/execlp.c \
+ src/POSIX.1-1988/unistd/execv.c \
+ src/POSIX.1-1988/unistd/execve.c \
+ src/POSIX.1-1988/unistd/execvp.c \
+ src/POSIX.1-1988/unistd/fork.c \
+ src/POSIX.1-1988/unistd/fpathconf.c \
+ src/POSIX.1-1988/unistd/getcwd.c \
+ src/POSIX.1-1988/unistd/getegid.c \
+ src/POSIX.1-1988/unistd/geteuid.c \
+ src/POSIX.1-1988/unistd/getgid.c \
+ src/POSIX.1-1988/unistd/getgroups.c \
+ src/POSIX.1-1988/unistd/getlogin.c \
+ src/POSIX.1-1988/unistd/getpgrp.c \
+ src/POSIX.1-1988/unistd/getpid.c \
+ src/POSIX.1-1988/unistd/getppid.c \
+ src/POSIX.1-1988/unistd/getuid.c \
+ src/POSIX.1-1988/unistd/isatty.c \
+ src/POSIX.1-1988/unistd/link.c \
+ src/POSIX.1-1988/unistd/lseek.c \
+ src/POSIX.1-1988/unistd/pathconf.c \
+ src/POSIX.1-1988/unistd/pause.c \
+ src/POSIX.1-1988/unistd/pipe.c \
+ src/POSIX.1-1988/unistd/read.c \
+ src/POSIX.1-1988/unistd/rmdir.c \
+ src/POSIX.1-1988/unistd/setgid.c \
+ src/POSIX.1-1988/unistd/setpgid.c \
+ src/POSIX.1-1988/unistd/setsid.c \
+ src/POSIX.1-1988/unistd/setuid.c \
+ src/POSIX.1-1988/unistd/sleep.c \
+ src/POSIX.1-1988/unistd/sysconf.c \
+ src/POSIX.1-1988/unistd/tcgetpgrp.c \
+ src/POSIX.1-1988/unistd/tcsetpgrp.c \
+ src/POSIX.1-1988/unistd/ttyname.c \
+ src/POSIX.1-1988/unistd/unlink.c \
+ src/POSIX.1-1988/unistd/write.c \
+ src/POSIX.1-1990/unistd/_SC_STREAM_MAX.c \
+ src/POSIX.1-1990/unistd/_SC_TZNAME_MAX.c
+
+$(INCDIR)/unistd.h: $(unistd_h_SOURCES)
+ sh mkh.sh $@ $(unistd_h_SOURCES)
+
+utime_h_SOURCES = \
+ src/POSIX.1-1988/utime/struct_utimbuf.c \
+ src/POSIX.1-1988/utime/utime.c
+
+$(INCDIR)/utime.h: $(utime_h_SOURCES)
+ sh mkh.sh $@ $(utime_h_SOURCES)
+
+headers: $(INCDIR)/assert.h $(INCDIR)/cpio.h $(INCDIR)/ctype.h $(INCDIR)/dirent.h $(INCDIR)/errno.h $(INCDIR)/fcntl.h $(INCDIR)/float.h $(INCDIR)/grp.h $(INCDIR)/limits.h $(INCDIR)/locale.h $(INCDIR)/math.h $(INCDIR)/pwd.h $(INCDIR)/setjmp.h $(INCDIR)/signal.h $(INCDIR)/stdarg.h $(INCDIR)/stddef.h $(INCDIR)/stdio.h $(INCDIR)/stdlib.h $(INCDIR)/string.h $(INCDIR)/sys/stat.h $(INCDIR)/sys/times.h $(INCDIR)/sys/types.h $(INCDIR)/sys/utsname.h $(INCDIR)/sys/wait.h $(INCDIR)/tar.h $(INCDIR)/termios.h $(INCDIR)/time.h $(INCDIR)/unistd.h $(INCDIR)/utime.h \ No newline at end of file
diff --git a/mkmf.sh b/mkmf.sh
index 147e98c0..1fc9eb9a 100755
--- a/mkmf.sh
+++ b/mkmf.sh
@@ -1,9 +1,8 @@
#!/bin/sh
-. ./mk.sh
+. $(dirname $0)/mk.sh
STANDARD=${1-9899-1990}
-#STANDARD=${1-POSIX.1-1990}
if [ ! -f .dep/to-build ]; then
rm -rf .dep .deps.mk .headers.mk
@@ -11,26 +10,26 @@ if [ ! -f .dep/to-build ]; then
echo ${STANDARD} > .dep/to-build
fi
-if [ ! -d std/${STANDARD} ]; then
+if [ ! -d src/${STANDARD} ]; then
printf "Standard %s not found.\n" "${STANDARD}"
exit 1
fi
-if [ -f std/${STANDARD}/INCLUDE ]; then
- for i in $(cat std/${STANDARD}/INCLUDE); do
- $0 $i
+if [ -f src/${STANDARD}/DEPS.mk ]; then
+ for i in $(grep DEPS src/${STANDARD}/DEPS.mk | cut -d= -f2); do
+ sh $0 $i
done
fi
rm -f .dep/${STANDARD}.*
-for i in $(find std/${STANDARD} -name \*.c) $(find std/${STANDARD} -name \*.ref); do
+for i in $(find src/${STANDARD} -name \*.c) $(find src/${STANDARD} -name \*.ref); do
printf '%s\t' "$i"
FILE=$i
BASE=$i
if grep -q '^REFERENCE(' $FILE; then
- BASE=$(grep '^REFERENCE(' $i | m4 -DREFERENCE='std/$1')
+ BASE=$(grep '^REFERENCE(' $i | m4 -DREFERENCE='src/$1')
fi
NAME=$(basename $BASE .c)
TYPE=$(classify_source $BASE)
diff --git a/std/9899-1990 b/src/9899-1990
-Subproject 831c0d6bafd5cf9c9368c780784f45bf9a94a99
+Subproject 831c0d6bafd5cf9c9368c780784f45bf9a94a99
diff --git a/std/9899-1990-AMD1 b/src/9899-1990-AMD1
-Subproject 0ffbdee04bcb1ad3c5257416df859a77c847c75
+Subproject 0ffbdee04bcb1ad3c5257416df859a77c847c75
diff --git a/std/POSIX.1-1988 b/src/POSIX.1-1988
-Subproject c66875ed4711e674f23b0fdb37c948920f0954a
+Subproject c66875ed4711e674f23b0fdb37c948920f0954a
diff --git a/std/POSIX.1-1990 b/src/POSIX.1-1990
-Subproject 933f61c85e4578b420e0d337848fe9597cfb3a4
+Subproject 933f61c85e4578b420e0d337848fe9597cfb3a4