Makefile 815 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. SQUIRREL= ..
  2. CC?= gcc
  3. OUT?= $(SQUIRREL)/lib/libsqstdlib.a
  4. INCZ?= -I$(SQUIRREL)/include -I. -Iinclude
  5. DEFS= $(CC_EXTRA_FLAGS)
  6. LIB=
  7. OBJS= \
  8. sqstdblob.o \
  9. sqstdio.o \
  10. sqstdstream.o \
  11. sqstdmath.o \
  12. sqstdsystem.o \
  13. sqstdstring.o \
  14. sqstdaux.o \
  15. sqstdrex.o
  16. SRCS= \
  17. sqstdblob.cpp \
  18. sqstdio.cpp \
  19. sqstdstream.cpp \
  20. sqstdmath.cpp \
  21. sqstdsystem.cpp \
  22. sqstdstring.cpp \
  23. sqstdaux.cpp \
  24. sqstdrex.cpp
  25. sq32:
  26. $(CC) -O2 -fno-exceptions -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
  27. ar rc $(OUT) *.o
  28. rm *.o
  29. sqprof:
  30. $(CC) -O2 -pg -fno-exceptions -fno-rtti -pie -gstabs -g3 -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
  31. ar rc $(OUT) *.o
  32. rm *.o
  33. sq64:
  34. $(CC) -O2 -m64 -fno-exceptions -D_SQ64 -fno-rtti -Wall -fno-strict-aliasing -c $(SRCS) $(INCZ) $(DEFS)
  35. ar rc $(OUT) *.o
  36. rm *.o