Subversion Repositories Kolibri OS

Rev

Rev 5199 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1.  
  2. CFLAGS_OPT = -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -U_MSC_VER -O2
  3. CFLAGS_OPT+= -fomit-frame-pointer -fno-ident -mno-ms-bitfields
  4. CFLAGS_OPT+= -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes
  5. CFLAGS   = -c $(CFLAGS_OPT)
  6.  
  7. INCLUDES=  -I. -I../include -I$(SDK_DIR)/sources/newlib/libc/include
  8.  
  9. DEFINES=  -DHAVE_CONFIG_H
  10.  
  11. SRCS = \
  12.         alloca.c argv.c asprintf.c bcmp.c bcopy.c bzero.c       \
  13.         choose-temp.c concat.c cp-demangle.c cp-demint.c        \
  14.         cplus-dem.c crc32.c dwarfnames.c dyn-string.c fdmatch.c \
  15.         ffs.c fibheap.c filename_cmp.c floatformat.c fnmatch.c  \
  16.         fopen_unlocked.c getopt.c getopt1.c getpwd.c            \
  17.         getruntime.c hashtab.c hex.c index.c insque.c           \
  18.         lbasename.c lrealpath.c make-relative-prefix.c          \
  19.         make-temp-file.c md5.c memmem.c mempcpy.c mkstemps.c    \
  20.         objalloc.c obstack.c partition.c physmem.c random.c     \
  21.         regex.c rindex.c safe-ctype.c setenv.c setproctitle.c   \
  22.         sha1.c sigsetmask.c simple-object.c simple-object-coff.c\
  23.         simple-object-elf.c simple-object-mach-o.c              \
  24.         simple-object-xcoff.c sort.c spaces.c splay-tree.c      \
  25.         stack-limit.c stpcpy.c stpncpy.c strcasecmp.c strerror.c\
  26.         strncasecmp.c strndup.c strnlen.c strverscmp.c          \
  27.         timeval-utils.c unlink-if-ordinary.c vasprintf.c        \
  28.         xatexit.c xexit.c xmalloc.c xmemdup.c xstrdup.c         \
  29.         xstrerror.c xstrndup.c
  30.  
  31. OBJS  =  $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS)))
  32.  
  33. # targets
  34.  
  35. all: libiberty.a
  36.  
  37. libiberty.a : $(OBJS) MAkefile
  38.         $(AR) crs libiberty.a $(OBJS)
  39. #       mv -f libiberty.a $(SDK_DIR)/lib
  40.  
  41. %.o : %.c Makefile
  42.         $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
  43.  
  44.