The source code and dockerfile for the GSW2024 AI Lab.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

64 lines
1.3 KiB

4 weeks ago
  1. 6,7c6
  2. < CFLAGS += -O9
  3. < #CFLAGS += -DBLISS_DEBUG
  4. ---
  5. > CFLAGS += -O4
  6. 15,16d13
  7. < GMPOBJS = $(addsuffix g, $(OBJS))
  8. <
  9. 18d14
  10. < #LIB += /usr/lib/ccmalloc.o -ldl
  11. 23a20,22
  12. > SONAME=libbliss.so
  13. > SOMINOR=0
  14. > SOFULL=$(SONAME).$(SOMINOR)
  15. 25,32c24
  16. < gmp: LIB += -lgmp
  17. < gmp: CFLAGS += -DBLISS_USE_GMP
  18. <
  19. < normal: bliss
  20. < gmp: bliss_gmp
  21. <
  22. <
  23. < all:: lib bliss
  24. ---
  25. > all:: libbliss.a libbliss.so
  26. 34c26
  27. < %.o %.og: %.cc
  28. ---
  29. > %.o: %.cc
  30. 37c29
  31. < lib: $(OBJS)
  32. ---
  33. > libbliss.a: $(OBJS)
  34. 42,51c34,48
  35. < lib_gmp: $(GMPOBJS)
  36. < rm -f $(BLISSLIB)
  37. < $(AR) cr $(BLISSLIB) $(GMPOBJS)
  38. < $(RANLIB) $(BLISSLIB)
  39. <
  40. < bliss: bliss.o lib $(OBJS)
  41. < $(CC) $(CFLAGS) -o bliss bliss.o $(OBJS) $(LIB)
  42. <
  43. < bliss_gmp: bliss.og lib_gmp $(GMPOBJS)
  44. < $(CC) $(CFLAGS) -o bliss bliss.og $(GMPOBJS) $(LIB)
  45. ---
  46. > libbliss.so: ${OBJS}
  47. > $(CC) -shared -Wl,-soname,$(SONAME) $(LIB) -o $(SOFULL) $^
  48. > ln -sf $(SOFULL) $(SONAME)
  49. > ln -sf $(SOFULL) libbliss.so
  50. >
  51. > install: libbliss.a libbliss.so
  52. > mkdir -p $(DESTDIR)/lib
  53. > cp libbliss.a $(DESTDIR)/lib
  54. > cp $(SOFULL) $(DESTDIR)/lib
  55. > cd $(DESTDIR)/lib && \
  56. > ln -sf $(SOFULL) $(SONAME) && \
  57. > ln -sf $(SOFULL) libbliss.so
  58. > mkdir -p $(DESTDIR)/include/bliss
  59. > cp *.h $(DESTDIR)/include/bliss
  60. > cp *.hh $(DESTDIR)/include/bliss
  61. 55c52
  62. < rm -f bliss $(BLISSLIB) $(OBJS) bliss.o $(GMPOBJS) bliss.og
  63. ---
  64. > rm -f bliss $(BLISSLIB) $(OBJS) bliss.o *.so*