Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #
  2. # Makefile
  3. #
  4. # DistRM
  5. #
  6. SHELL=sh
  7. RCCEROOT=../..
  8. include $(RCCEROOT)/common/symbols
  9. OBJS=distrm.o libfun.o nocfun.o sigaux.o idle_agent.o common_node.o signal_handlers.o scc_signals.o $(ARCHIVE)
  10. distrm: $(OBJS)
  11. $(CCOMPILE) $(CFLAGS) -o distrm $(OBJS) -lrt -lm
  12. nocfun.o: noc_functions.c noc_functions.h distrm.h $(RCCEINCLUDE)/RCCE.h
  13. $(CCOMPILE) $(CFLAGS) -o nocfun.o -c noc_functions.c
  14. libfun.o: libfunctions.c libfunctions.h distrm.h $(RCCEINCLUDE)/RCCE.h
  15. $(CCOMPILE) $(CFLAGS) -o libfun.o -c libfunctions.c
  16. sigaux.o: sig_aux.c sig_aux.h distrm.h signal_handlers.h $(RCCEINCLUDE)/RCCE.h
  17. $(CCOMPILE) $(CFLAGS) -o sigaux.o -c sig_aux.c
  18. scc_signals.o: scc_signals.c scc_signals.h distrm.h signal_handlers.h $(RCCEINCLUDE)/RCCE.h
  19. $(CCOMPILE) $(CFLAGS) -o scc_signals.o -c scc_signals.c
  20. idle_agent.o: idle_agent.c idle_agent.h libfunctions.h distrm.h noc_functions.h sig_aux.h signal_handlers.h scc_signals.h $(RCCEINCLUDE)/RCCE.h
  21. $(CCOMPILE) $(CFLAGS) -o idle_agent.o -c idle_agent.c
  22. common_node.o: common_node.c common_node.h libfunctions.h distrm.h noc_functions.h sig_aux.h signal_handlers.h scc_signals.h $(RCCEINCLUDE)/RCCE.h
  23. $(CCOMPILE) $(CFLAGS) -o common_node.o -c common_node.c
  24. distrm.o: distrm.c libfunctions.h distrm.h noc_functions.h sig_aux.h idle_agent.h common_node.h signal_handlers.h scc_signals.h $(RCCEINCLUDE)/RCCE.h
  25. $(CCOMPILE) $(CFLAGS) -o distrm.o -c distrm.c
  26. signal_handlers.o: signal_handlers.c libfunctions.h distrm.h noc_functions.h sig_aux.h scc_signals.h $(RCCEINCLUDE)/RCCE.h
  27. $(CCOMPILE) $(CFLAGS) -o signal_handlers.o -c signal_handlers.c
  28. clean:
  29. rm -f distrm distrm.o libfun.o nocfun.o sigaux.o common_node.o idle_agent.o signal_handlers.o scc_signals.o
  30. clean_pipes:
  31. rm -f ./pipes/*