Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. SQUIRREL= ..
  2. OUT= $(SQUIRREL)/lib/libsquirrel.a
  3. INCZ= -I$(SQUIRREL)/include -I. -Iinclude -I$(SQUIRREL)/sqstdlib
  4. DEFS= $(CC_EXTRA_FLAGS)
  5. LIB=
  6. OBJS= \
  7. sqapi.o \
  8. sqbaselib.o \
  9. sqfuncstate.o \
  10. sqdebug.o \
  11. sqlexer.o \
  12. sq_lexer.o \
  13. sqobject.o \
  14. sqcompiler.o \
  15. sqstate.o \
  16. sqtable.o \
  17. sqmem.o \
  18. sqvm.o \
  19. sqclass.o \
  20. lua-regex.o \
  21. sublatin.o
  22. SRCS= \
  23. sqapi.cpp \
  24. sqbaselib.cpp \
  25. sqfuncstate.cpp \
  26. sqdebug.cpp \
  27. sqlexer.cpp \
  28. sq_lexer.cpp \
  29. sqobject.cpp \
  30. sqcompiler.cpp \
  31. sqstate.cpp \
  32. sqtable.cpp \
  33. sqmem.cpp \
  34. sqvm.cpp \
  35. sqclass.cpp \
  36. lua-regex.c \
  37. sublatin.c
  38. sq32:
  39. $(CC) -O2 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
  40. ar rc $(OUT) *.o
  41. rm *.o
  42. sq3232:
  43. $(CC) -O2 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
  44. ar rc $(OUT) *.o
  45. rm *.o
  46. sq32i64:
  47. $(CC) -g -D_SQ64 -O2 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
  48. ar rc $(OUT) *.o
  49. rm *.o
  50. sq32dbg:
  51. $(CC) -g -m32 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
  52. ar rc $(OUT) *.o
  53. rm *.o
  54. sqprof:
  55. #$(CC) -O2 -pg -fno-exceptions -fno-rtti -pie -gstabs -g3 -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
  56. $(CC) -O2 -pg -g -fno-exceptions -fno-rtti -gstabs -g3 -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
  57. ar rc $(OUT) *.o
  58. rm *.o
  59. sq64:
  60. $(CC) -O3 -m64 -D_SQ64 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
  61. # $(CC) -g -m64 -D_SQ64 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
  62. ar rc $(OUT) *.o
  63. rm *.o
  64. sq64p:
  65. $(CC) -fpack-struct -DSQ_PACKED_STRUCT -march=native -O3 -m64 -D_SQ64 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
  66. # $(CC) -g -m64 -D_SQ64 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
  67. ar rc $(OUT) *.o
  68. rm *.o
  69. sq64dbg:
  70. $(CC) -g -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
  71. ar rc $(OUT) *.o
  72. rm *.o