Makefile 939 B

123456789101112131415161718192021222324252627282930313233343536
  1. .PHONY: all clean
  2. SCCDC = python -m sccd.compiler.sccdc
  3. FLAGS = -l python -p eventloop
  4. FLAGS_THREADS = -l python -p threads
  5. TARGET_DIR = target_py
  6. TARGETS = $(TARGET_DIR)/target.py $(TARGET_DIR)/multiwindow.py $(TARGET_DIR)/target_performance.py $(TARGET_DIR)/target_performance_threads.py $(TARGET_DIR)/target_performance_cpu_time.py
  7. all: $(TARGET_DIR) $(TARGETS)
  8. clean:
  9. find $(TARGET_DIR) -type f -delete
  10. -rmdir $(TARGET_DIR)
  11. $(TARGET_DIR)/target.py: sccd.xml
  12. $(SCCDC) $(FLAGS) -o $@ $<
  13. $(TARGET_DIR)/multiwindow.py: sccd_multiwindow.xml
  14. $(SCCDC) $(FLAGS) -o $@ $<
  15. $(TARGET_DIR)/target_performance.py: sccd_performance.xml
  16. $(SCCDC) $(FLAGS) -o $@ $<
  17. $(TARGET_DIR)/target_performance_threads.py: sccd_performance_threads.xml
  18. $(SCCDC) $(FLAGS_THREADS) -o $@ $<
  19. $(TARGET_DIR)/target_performance_cpu_time.py: sccd_performance_cpu_time.xml
  20. $(SCCDC) $(FLAGS_THREADS) -o $@ $<
  21. $(TARGET_DIR):
  22. -mkdir $@
  23. touch $@/__init__.py