diff options
author | millert <> | 2002-12-03 20:24:30 +0000 |
---|---|---|
committer | millert <> | 2002-12-03 20:24:30 +0000 |
commit | 4bbebe1cbc72fcf121b5982aba8121a040997270 (patch) | |
tree | 4181617be2388b75004461e3be7ffcc9c1b6f922 /src/lib/libc/stdlib/Makefile.inc | |
parent | 5b1b8dec4403c20d7a64a5a24dd566c852ddcb6b (diff) | |
download | openbsd-4bbebe1cbc72fcf121b5982aba8121a040997270.tar.gz openbsd-4bbebe1cbc72fcf121b5982aba8121a040997270.tar.bz2 openbsd-4bbebe1cbc72fcf121b5982aba8121a040997270.zip |
GNU-like getopt_long() from NetBSD with changes by me to support
getopt_long_only(). At some point this should replace the BSD
getopt(3) but we are not there yet.
While I am here add protection from the multiple getopt() definitions
due to conflicting standards.
Diffstat (limited to 'src/lib/libc/stdlib/Makefile.inc')
-rw-r--r-- | src/lib/libc/stdlib/Makefile.inc | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/lib/libc/stdlib/Makefile.inc b/src/lib/libc/stdlib/Makefile.inc index 6b23e5cb2d..8f16135e99 100644 --- a/src/lib/libc/stdlib/Makefile.inc +++ b/src/lib/libc/stdlib/Makefile.inc | |||
@@ -4,10 +4,10 @@ | |||
4 | .PATH: ${LIBCSRCDIR}/arch/${MACHINE_ARCH}/stdlib ${LIBCSRCDIR}/stdlib | 4 | .PATH: ${LIBCSRCDIR}/arch/${MACHINE_ARCH}/stdlib ${LIBCSRCDIR}/stdlib |
5 | 5 | ||
6 | SRCS+= a64l.c abort.c atexit.c atoi.c atof.c atol.c atoll.c bsearch.c \ | 6 | SRCS+= a64l.c abort.c atexit.c atoi.c atof.c atol.c atoll.c bsearch.c \ |
7 | calloc.c cfree.c exit.c ecvt.c gcvt.c getenv.c getopt.c getsubopt.c \ | 7 | calloc.c cfree.c exit.c ecvt.c gcvt.c getenv.c getopt.c getopt_long.c \ |
8 | heapsort.c l64a.c malloc.c merge.c multibyte.c putenv.c qsort.c \ | 8 | getsubopt.c heapsort.c l64a.c malloc.c merge.c multibyte.c putenv.c = |
9 | radixsort.c rand.c random.c realpath.c setenv.c strtod.c strtol.c \ | 9 | qsort.c radixsort.c rand.c random.c realpath.c setenv.c strtod.c \ |
10 | strtoll.c strtoul.c strtoull.c system.c tfind.c tsearch.c \ | 10 | strtol.c strtoll.c strtoul.c strtoull.c system.c tfind.c tsearch.c \ |
11 | _rand48.c drand48.c erand48.c jrand48.c lcong48.c lrand48.c \ | 11 | _rand48.c drand48.c erand48.c jrand48.c lcong48.c lrand48.c \ |
12 | mrand48.c nrand48.c seed48.c srand48.c qabs.c qdiv.c | 12 | mrand48.c nrand48.c seed48.c srand48.c qabs.c qdiv.c |
13 | 13 | ||
@@ -33,13 +33,14 @@ SRCS+= abs.c div.c labs.c ldiv.c | |||
33 | .endif | 33 | .endif |
34 | 34 | ||
35 | MAN+= a64l.3 abort.3 abs.3 alloca.3 atexit.3 atof.3 atoi.3 atol.3 atoll.3 \ | 35 | MAN+= a64l.3 abort.3 abs.3 alloca.3 atexit.3 atof.3 atoi.3 atol.3 atoll.3 \ |
36 | bsearch.3 div.3 ecvt.3 exit.3 getenv.3 getopt.3 getsubopt.3 labs.3 \ | 36 | bsearch.3 div.3 ecvt.3 exit.3 getenv.3 getopt.3 getopt_long.3 \ |
37 | ldiv.3 malloc.3 memory.3 qabs.3 qdiv.3 qsort.3 radixsort.3 rand48.3 \ | 37 | getsubopt.3 labs.3 ldiv.3 malloc.3 memory.3 qabs.3 qdiv.3 qsort.3 \ |
38 | rand.3 random.3 realpath.3 strtod.3 strtol.3 strtoul.3 system.3 \ | 38 | radixsort.3 rand48.3 rand.3 random.3 realpath.3 strtod.3 strtol.3 \ |
39 | tsearch.3 | 39 | strtoul.3 system.3 tsearch.3 |
40 | 40 | ||
41 | MLINKS+=ecvt.3 fcvt.3 ecvt.3 gcvt.3 | 41 | MLINKS+=ecvt.3 fcvt.3 ecvt.3 gcvt.3 |
42 | MLINKS+=getenv.3 setenv.3 getenv.3 unsetenv.3 getenv.3 putenv.3 | 42 | MLINKS+=getenv.3 setenv.3 getenv.3 unsetenv.3 getenv.3 putenv.3 |
43 | MLINKS+=getopt_long.3 getopt_long_only.3 | ||
43 | MLINKS+=malloc.3 free.3 malloc.3 realloc.3 malloc.3 calloc.3 | 44 | MLINKS+=malloc.3 free.3 malloc.3 realloc.3 malloc.3 calloc.3 |
44 | MLINKS+=malloc.3 cfree.3 malloc.3 malloc.conf.5 | 45 | MLINKS+=malloc.3 cfree.3 malloc.3 malloc.conf.5 |
45 | MLINKS+=qsort.3 heapsort.3 qsort.3 mergesort.3 | 46 | MLINKS+=qsort.3 heapsort.3 qsort.3 mergesort.3 |