Makefile 827 B

123456789101112131415161718192021222324252627282930313233
  1. all : cotehaus test
  2. objects = types.o composer.o lgwseq.o java7.tab.o parse_file.o map_list.o header.o proto_id.o str_id.o type_id.o type_list.o unresolved_type.o class_def.o method_id.o
  3. cotehaus : $(objects)
  4. bash build_wtname.sh
  5. gcc -Wall -g -std=c99 -lz -lpolarssl -o cotehaus $(objects)
  6. test_objects = lgwseq_test.o str_id_test.o
  7. test : cotehaus.o $(objects) $(test_objects)
  8. gcc -Wall -g -std=c99 -lz -lpolarssl -o tests_harness cotehaus.o $(objects) $(test_objects)
  9. %.tab.o: %.tab.c %.tab.h
  10. %.tab.c %.tab.h: %.y
  11. bison -d --report=all $<
  12. types.o: types.h
  13. composer.o: composer.h
  14. debian_install_zlib :
  15. sudo apt install zlib1g-dev
  16. debian_install_polarssl :
  17. sudo apt install libpolarssl-dev
  18. stub_base_lib :
  19. bash scandoc.sh
  20. vpath %.c src/main src/test
  21. vpath %.h src/main src/test
  22. vpath %.y src/main src/test