Makefile~ 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #
  2. # Makefile
  3. #
  4. # my_rtrm
  5. #
  6. #CC = gcc
  7. #CFLAGS = -O0 -Wall -g #-Wextra
  8. SHELL=sh
  9. RCCEROOT=../..
  10. include $(RCCEROOT)/common/symbols
  11. OBJS=my_rtrm.o libfun.o nocfun.o sigaux.o idle_agent.o common_node.o signal_handlers.o scc_signals.o $(ARCHIVE)
  12. #default:
  13. # @echo "Usage: make pingpong "
  14. #comm_test: $(OBJS)
  15. # $(CCOMPILE) -o comm_test $(OBJS) $(CFLAGS)
  16. #comm_test.o: comm_test.c $(RCCEINCLUDE)/RCCE.h
  17. # $(CCOMPILE) -c $(CFLAGS) comm_test.c
  18. #clean:
  19. # @ rm -f *.o comm_test
  20. # my_rtrm.o libfun.o nocfun.o sigaux.o idle_agent.o common_node.o signal_handlers.o scc_signals.o
  21. my_rtrm: $(OBJS)
  22. $(CCOMPILE) $(CFLAGS) -o my_rtrm my_rtrm.o libfun.o nocfun.o sigaux.o idle_agent.o common_node.o signal_handlers.o scc_signals.o -lrt -lm
  23. nocfun.o: noc_functions.c noc_functions.h my_rtrm.h $(RCCEINCLUDE)/RCCE.h
  24. $(CCOMPILE) $(CFLAGS) -o nocfun.o -c noc_functions.c
  25. libfun.o: libfunctions.c libfunctions.h my_rtrm.h $(RCCEINCLUDE)/RCCE.h
  26. $(CCOMPILE) $(CFLAGS) -o libfun.o -c libfunctions.c
  27. sigaux.o: sig_aux.c sig_aux.h my_rtrm.h signal_handlers.h $(RCCEINCLUDE)/RCCE.h
  28. $(CCOMPILE) $(CFLAGS) -o sigaux.o -c sig_aux.c
  29. scc_signals.o: scc_signals.c scc_signals.h my_rtrm.h signal_handlers.h $(RCCEINCLUDE)/RCCE.h
  30. $(CCOMPILE) $(CFLAGS) -o scc_signals.o -c scc_signals.c
  31. idle_agent.o: idle_agent.c idle_agent.h libfunctions.h my_rtrm.h noc_functions.h sig_aux.h signal_handlers.h scc_signals.h $(RCCEINCLUDE)/RCCE.h
  32. $(CCOMPILE) $(CFLAGS) -o idle_agent.o -c idle_agent.c
  33. common_node.o: common_node.c common_node.h libfunctions.h my_rtrm.h noc_functions.h sig_aux.h signal_handlers.h scc_signals.h $(RCCEINCLUDE)/RCCE.h
  34. $(CCOMPILE) $(CFLAGS) -o common_node.o -c common_node.c
  35. my_rtrm.o: my_rtrm.c libfunctions.h my_rtrm.h noc_functions.h sig_aux.h idle_agent.h common_node.h signal_handlers.h scc_signals.h $(RCCEINCLUDE)/RCCE.h
  36. $(CCOMPILE) $(CFLAGS) -o my_rtrm.o -c my_rtrm.c
  37. signal_handlers.o: signal_handlers.c libfunctions.h my_rtrm.h noc_functions.h sig_aux.h scc_signals.h $(RCCEINCLUDE)/RCCE.h
  38. $(CCOMPILE) $(CFLAGS) -o signal_handlers.o -c signal_handlers.c
  39. clean:
  40. rm -f my_rtrm my_rtrm.o libfun.o nocfun.o sigaux.o common_node.o idle_agent.o signal_handlers.o scc_signals.o
  41. clean_pipes:
  42. rm -f ./pipes/*