9511_project01

project 1 for algorithms & programming I (9511) prof. Cardozo
Index Commits Files Refs README
Makefile (1226B)
   1 CC = gcc
   2 CFLAGS = -std=c99 -Wall -pedantic -g
   3 
   4 all: main clean
   5 
   6 main: main.o arguments.o print_error.o load_country_codes.o read_file.o print_file.o
   7     $(CC) $(CFLAGS) main.o arguments.o print_error.o load_country_codes.o read_file.o print_file.o -o analisis_covid 
   8 
   9 main.o: main.c main.h arguments.h macros.h
  10     $(CC) $(CFLAGS) -c main.c
  11 
  12 arguments.o: arguments.c arguments.h macros.h
  13     $(CC) $(CFLAGS) -c arguments.c
  14 
  15 load_country_codes.o: load_country_codes.h main.h
  16     $(CC) $(CFLAGS) -c load_country_codes.c 
  17 
  18 print_error.o: main.c main.h
  19     $(CC) $(CFLAGS) -c print_error.c
  20 
  21 read_file.o: read_file.h main.h
  22     $(CC) $(CFLAGS) -c read_file.c
  23 
  24 print_file.o: print_file.h main.h
  25     $(CC) $(CFLAGS) -c print_file.c
  26 
  27 
  28 clean:
  29     rm -f *.o
  30 
  31 clear:
  32     rm -f analisis_covid
  33 
  34 
  35 # Para probar la invocacion de el programa;
  36 run: 
  37     ./analisis_covid -in input.csv -out output.txt
  38 
  39 run2: 
  40     ./analisis_covid -out output.txt -in input.csv 
  41 
  42 run3: 
  43     ./analisis_covid -in -out
  44 
  45 run4: 
  46     ./analisis_covid -out output.txt -in 
  47 
  48 run5: 
  49     ./analisis_covid -in input.csv -out
  50 
  51 run6: 
  52     ./analisis_covid -out -in input.csv 
  53 
  54 run7: 
  55     ./analisis_covid -in -out output.txt
  56 
  57 run8: 
  58     ./analisis_covid -in input.csv 
  59 
  60 run9:
  61     ./analisis_covid output.txt -out input.csv -in