patch-library_Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --- polarssl-1.3.6.orig/library/Makefile 2014-04-11 15:33:59.000000000 +0200
  2. +++ polarssl-1.3.6/library/Makefile 2014-04-25 07:42:34.000000000 +0200
  3. @@ -18,9 +18,7 @@ endif
  4. # CFLAGS += -D_BSD_EXTENSION
  5. # To compile as a shared library:
  6. -ifdef SHARED
  7. CFLAGS += -fPIC
  8. -endif
  9. SONAME=libpolarssl.so.6
  10. @@ -65,28 +63,20 @@ OBJS= aes.o aesni.o arc4.o \
  11. .SILENT:
  12. -ifndef SHARED
  13. -all: static
  14. -else
  15. -all: shared
  16. -endif
  17. +all: static shared
  18. static: libpolarssl.a
  19. shared: libpolarssl.$(DLEXT) libpolarssl.so
  20. libpolarssl.a: $(OBJS)
  21. - echo " AR $@"
  22. $(AR) r $@ $(OBJS)
  23. - echo " RL $@"
  24. $(AR) s $@
  25. libpolarssl.${DLEXT}: libpolarssl.a
  26. - echo " LD $@"
  27. $(CC) ${LDFLAGS} -shared -Wl,-soname,$(SONAME) -o $@ $(OBJS)
  28. libpolarssl.so: libpolarssl.${DLEXT}
  29. - echo " LN $@ -> libpolarssl.${DLEXT}"
  30. ln -sf libpolarssl.${DLEXT} $@
  31. libpolarssl.dylib: libpolarssl.a
  32. @@ -98,7 +88,6 @@ libpolarssl.dll: libpolarssl.a
  33. $(CC) -shared -Wl,-soname,$@ -o $@ $(OBJS) -lws2_32 -lwinmm -lgdi32
  34. .c.o:
  35. - echo " CC $<"
  36. $(CC) $(CFLAGS) $(OFLAGS) -c $<
  37. clean: