Advertisement
Dediggefedde

Makefile for ubuntu

Feb 19th, 2014
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 2.46 KB | None | 0 0
  1. COMPILER_OPT = -O3
  2.  
  3. all: extract_timestamps
  4.  
  5. extract_timestamps: extract_timestamps.c filename_treatment.o basic_analysis.o collection.o \
  6.             read_lecroy_file.o read_tek_file.o stamp_handling.o treat_lecroy_file.o \
  7.             treat_tek_file.o save_timestamps.o injection_statistics.o calc_time_stamp.o \
  8.             peak_finding.o get_timestamps.o time_ext.h
  9.     gcc $(COMPILER_OPT) -o extract_timestamps extract_timestamps.c filename_treatment.o \
  10.                    basic_analysis.o collection.o read_lecroy_file.o read_tek_file.o stamp_handling.o \
  11.                        treat_lecroy_file.o treat_tek_file.o save_timestamps.o injection_statistics.o \
  12.                calc_time_stamp.o peak_finding.o get_timestamps.o; chmod go+rx extract_timestamps -lm
  13.  
  14.  
  15. get_timestamps.o: get_timestamps.c time_ext.h
  16.     gcc $(COMPILER_OPT) -c get_timestamps.c -lm
  17.  
  18. peak_finding.o: peak_finding.c time_ext.h
  19.     gcc $(COMPILER_OPT) -c -o peak_finding.o peak_finding.c -lm
  20.  
  21. calc_time_stamp.o: calc_time_stamp.c time_ext.h
  22.     gcc $(COMPILER_OPT) -c -o calc_time_stamp.o calc_time_stamp.c -lm
  23.  
  24. injection_statistics.o: injection_statistics.c time_ext.h
  25.     gcc $(COMPILER_OPT) -c -o injection_statistics.o injection_statistics.c -lm
  26.  
  27. save_timestamps.o: save_timestamps.c time_ext.h
  28.     gcc $(COMPILER_OPT) -c -o save_timestamps.o save_timestamps.c -lm
  29.  
  30. filename_treatment.o: filename_treatment.c time_ext.h
  31.     gcc $(COMPILER_OPT) -c -o filename_treatment.o filename_treatment.c -lm
  32.  
  33. basic_analysis.o: basic_analysis.c time_ext.h
  34.     gcc $(COMPILER_OPT) -c -o basic_analysis.o basic_analysis.c -lm
  35.  
  36. collection.o: collection.c time_ext.h
  37.     gcc $(COMPILER_OPT) -c -o collection.o collection.c -lm
  38.  
  39. read_lecroy_file.o: read_lecroy_file.c time_ext.h
  40.     gcc $(COMPILER_OPT) -c -o read_lecroy_file.o read_lecroy_file.c -lm
  41.  
  42. read_tek_file.o: read_tek_file.c time_ext.h
  43.     gcc $(COMPILER_OPT) -c -o read_tek_file.o read_tek_file.c -lm
  44.  
  45. stamp_handling.o: stamp_handling.c time_ext.h
  46.     gcc $(COMPILER_OPT) -c -o stamp_handling.o stamp_handling.c -lm
  47.  
  48. treat_lecroy_file.o: treat_lecroy_file.c time_ext.h
  49.     gcc $(COMPILER_OPT) -c -o treat_lecroy_file.o treat_lecroy_file.c -lm
  50.  
  51. treat_tek_file.o: treat_tek_file.c time_ext.h
  52.     gcc $(COMPILER_OPT) -c -o treat_tek_file.o treat_tek_file.c -lm
  53.  
  54. clean:
  55.     rm filename_treatment.o basic_analysis.o collection.o \
  56.            read_lecroy_file.o stamp_handling.o treat_lecroy_file.o save_timestamps.o \
  57.        injection_statistics.o calc_time_stamp.o peak_finding.o \
  58.        read_tek_file.o treat_tek_file.o \
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement