Makefile 790 B

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