Makefile 800 B

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