Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/Makefile

    rfdf97f6 r4cf8ca6  
    3333LSONAME = libposix.so0
    3434
    35 EXTRA_CFLAGS = -Iinclude/
    36 
    37 INCLUDE_LIBC = ./include/libc
    38 
    39 LIBC_FILE = $(LIBC_PREFIX)/libc.a
    40 
    41 FIXED_POSIX_LIBRARY = libposixaslibc.a
    42 FIXED_C_LIBRARY = libc4posix.a
    43 
    44 REDEFS_HIDE_LIBC = redefs-hide-libc.xargs
    45 REDEFS_SHOW_LIBPOSIX = redefs-show-posix.xargs
    46 COLLISIONS_LIST = collisions.list
     35INCLUDE_LIBC = ./libc
    4736
    4837PRE_DEPEND = $(INCLUDE_LIBC)
    49 EXTRA_CLEAN = \
    50         $(INCLUDE_LIBC) \
    51         $(REDEFS_HIDE_LIBC) $(REDEFS_SHOW_LIBPOSIX) \
    52         $(COLLISIONS_LIST)
    53 EXTRA_OUTPUT = $(FIXED_C_LIBRARY) $(FIXED_POSIX_LIBRARY)
     38EXTRA_CLEAN = $(INCLUDE_LIBC)
    5439
    5540SOURCES = \
    56         source/ctype.c \
    57         source/errno.c \
    58         source/fcntl.c \
    59         source/fnmatch.c \
    60         source/getopt.c \
    61         source/locale.c \
    62         source/math.c \
    63         source/pwd.c \
    64         source/signal.c \
    65         source/stdio.c \
    66         source/stdio/scanf.c \
    67         source/stdlib.c \
    68         source/stdlib/strtol.c \
    69         source/stdlib/strtold.c \
    70         source/string.c \
    71         source/strings.c \
    72         source/sys/stat.c \
    73         source/sys/wait.c \
    74         source/time.c \
    75         source/unistd.c
     41        ctype.c \
     42        errno.c \
     43        fcntl.c \
     44        fnmatch.c \
     45        locale.c \
     46        math.c \
     47        pwd.c \
     48        signal.c \
     49        stdio.c \
     50        stdio/scanf.c \
     51        stdlib.c \
     52        stdlib/strtol.c \
     53        stdlib/strtold.c \
     54        string.c \
     55        strings.c \
     56        sys/stat.c \
     57        sys/wait.c \
     58        time.c \
     59        unistd.c
    7660
    7761include $(USPACE_PREFIX)/Makefile.common
    7862
    7963$(INCLUDE_LIBC): ../c/include
    80         ln -s -f -n ../$^ $@
    81 
    82 $(FIXED_C_LIBRARY): $(REDEFS_HIDE_LIBC) $(REDEFS_SHOW_LIBPOSIX)
    83         ./tools/transform-symbols.sh \
    84                 $(OBJCOPY) $(AR) echo \
    85                 $(LIBC_FILE) $@ \
    86                 $(REDEFS_HIDE_LIBC) $(REDEFS_SHOW_LIBPOSIX)
    87 
    88 $(FIXED_POSIX_LIBRARY): $(LIBRARY).a $(REDEFS_HIDE_LIBC) $(REDEFS_SHOW_LIBPOSIX)
    89         ./tools/transform-symbols.sh \
    90                 $(OBJCOPY) $(AR) echo \
    91                 $(LIBRARY).a $@ \
    92                 $(REDEFS_HIDE_LIBC) $(REDEFS_SHOW_LIBPOSIX)
    93 
    94 $(REDEFS_HIDE_LIBC): $(COLLISIONS_LIST)
    95         ./tools/create-redefines.sh "" "__helenos_libc_" <$(COLLISIONS_LIST) >$@
    96        
    97 $(REDEFS_SHOW_LIBPOSIX): $(COLLISIONS_LIST)
    98         ./tools/create-redefines.sh "posix_" "" <$(COLLISIONS_LIST) >$@
    99 
    100 $(COLLISIONS_LIST):
    101         ./tools/get-collision-list.sh ./include/posix >$@
     64        ln -s -f -n $^ $@
Note: See TracChangeset for help on using the changeset viewer.