Subversion Repositories Kolibri OS

Rev

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

  1. LIBRARY= libexpat
  2.  
  3. CC = kos32-gcc
  4. AR = kos32-ar
  5. LD = kos32-ld
  6.  
  7. INSTALLDIR:= /home/autobuild/tools/win32/lib
  8.  
  9. CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -fno-ident -fomit-frame-pointer
  10.  
  11. ARFLAGS = crs
  12.  
  13. INCLUDES= -I. -I../newlib/libc/include
  14.  
  15. DEFS = -DHAVE_EXPAT_CONFIG_H
  16.  
  17. DEFINES= $(DEFS)
  18.  
  19. SRCS =  lib/xmlparse.c          \
  20.         lib/xmlrole.c           \
  21.         lib/xmltok.c            \
  22.         lib/xmltok_impl.c       \
  23.         lib/xmltok_ns.c         \
  24.         $(NULL)
  25.  
  26. OBJS =  $(patsubst %.c, %.o, $(SRCS))
  27.  
  28. # targets
  29.  
  30. all:$(LIBRARY).a
  31.  
  32. $(LIBRARY).a: $(OBJS) Makefile
  33.         $(AR) $(ARFLAGS) $(LIBRARY).a $(OBJS)
  34.  
  35. install: $(LIBRARY).a
  36.         mv -f $(LIBRARY).a $(INSTALLDIR)
  37.  
  38. %.o : %.c Makefile
  39.         $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
  40.  
  41. clean:
  42.         -rm -f lib/*.o
  43.  
  44.  
  45.  
  46.  
  47.