Counter Strike : Global Offensive Source Code
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.

58 lines
2.2 KiB

  1. # See README.txt.
  2. .PHONY: all cpp java python clean
  3. all: cpp java python
  4. cpp: add_person_cpp list_people_cpp
  5. java: add_person_java list_people_java
  6. python: add_person_python list_people_python
  7. clean:
  8. rm -f add_person_cpp list_people_cpp add_person_java list_people_java add_person_python list_people_python
  9. rm -f javac_middleman AddPerson*.class ListPeople*.class com/example/tutorial/*.class
  10. rm -f protoc_middleman addressbook.pb.cc addressbook.pb.h addressbook_pb2.py com/example/tutorial/AddressBookProtos.java
  11. rm -f *.pyc
  12. rmdir com/example/tutorial 2>/dev/null || true
  13. rmdir com/example 2>/dev/null || true
  14. rmdir com 2>/dev/null || true
  15. protoc_middleman: addressbook.proto
  16. protoc --cpp_out=. --java_out=. --python_out=. addressbook.proto
  17. @touch protoc_middleman
  18. add_person_cpp: add_person.cc protoc_middleman
  19. pkg-config --cflags protobuf # fails if protobuf is not installed
  20. c++ add_person.cc addressbook.pb.cc -o add_person_cpp `pkg-config --cflags --libs protobuf`
  21. list_people_cpp: list_people.cc protoc_middleman
  22. pkg-config --cflags protobuf # fails if protobuf is not installed
  23. c++ list_people.cc addressbook.pb.cc -o list_people_cpp `pkg-config --cflags --libs protobuf`
  24. javac_middleman: AddPerson.java ListPeople.java protoc_middleman
  25. javac AddPerson.java ListPeople.java com/example/tutorial/AddressBookProtos.java
  26. @touch javac_middleman
  27. add_person_java: javac_middleman
  28. @echo "Writing shortcut script add_person_java..."
  29. @echo '#! /bin/sh' > add_person_java
  30. @echo 'java -classpath .:$$CLASSPATH AddPerson "$$@"' >> add_person_java
  31. @chmod +x add_person_java
  32. list_people_java: javac_middleman
  33. @echo "Writing shortcut script list_people_java..."
  34. @echo '#! /bin/sh' > list_people_java
  35. @echo 'java -classpath .:$$CLASSPATH ListPeople "$$@"' >> list_people_java
  36. @chmod +x list_people_java
  37. add_person_python: add_person.py protoc_middleman
  38. @echo "Writing shortcut script add_person_python..."
  39. @echo '#! /bin/sh' > add_person_python
  40. @echo './add_person.py "$$@"' >> add_person_python
  41. @chmod +x add_person_python
  42. list_people_python: list_people.py protoc_middleman
  43. @echo "Writing shortcut script list_people_python..."
  44. @echo '#! /bin/sh' > list_people_python
  45. @echo './list_people.py "$$@"' >> list_people_python
  46. @chmod +x list_people_python