1 CC=gcc 2 CFLAGS=-pedantic -Wall -g 3 SRCFOLDER=source 4 HFOLDER=include 5 PROGNAME=main 6 7 all: main clean 8 9 main: cla.o status.o utils.o main.o user.o vector.o load.o 10 $(CC) $(CFLAGS) main.o cla.o status.o utils.o user.o load.o vector.o -o $(PROGNAME) 11 12 main.o: $(HFOLDER)/cla.h $(HFOLDER)/status.h $(HFOLDER)/user.h $(HFOLDER)/load.h 13 $(CC) $(CFLAGS) -c $(SRCFOLDER)/main.c 14 15 cla.o: $(HFOLDER)/cla.h $(HFOLDER)/status.h 16 $(CC) $(CFLAGS) -c $(SRCFOLDER)/cla.c 17 18 vector.o: $(HFOLDER)/vector.h $(HFOLDER)/status.h 19 $(CC) $(CFLAGS) -c $(SRCFOLDER)/vector.c 20 21 status.o: $(HFOLDER)/status.h 22 $(CC) $(CFLAGS) -c $(SRCFOLDER)/status.c 23 24 utils.o: $(HFOLDER)/status.h $(HFOLDER)/user.h $(HFOLDER)/vector.h 25 $(CC) $(CFLAGS) -c $(SRCFOLDER)/utils.c 26 27 user.o: $(HFOLDER)/status.h $(HFOLDER)/user.h 28 $(CC) $(CFLAGS) -c $(SRCFOLDER)/user.c 29 30 load.o: $(HFOLDER)/status.h $(HFOLDER)/user.h $(HFOLDER)/vector.h $(HFOLDER)/utils.h $(HFOLDER)/load.h $(HFOLDER)/cla.h 31 $(CC) $(CFLAGS) -c $(SRCFOLDER)/load.c 32 33 clean: 34 rm *.o 35 36 run5: 37 ./main -fmt csv -out output.csv -in examples/test_file_5.csv -ti 1320498000 -tf 1320498046 38 39 run20: 40 ./main -fmt csv -out output.csv -in examples/test_file_20.csv -ti 1320498000 -tf 1320498046 41 42 run2k: 43 ./main -fmt csv -out output.csv -in examples/test_file_2k.csv -ti 1320498000 -tf 1325499000 44 45 run50: 46 ./main -fmt csv -out output.csv -in examples/test_file_50.csv -ti 1320498000 -tf 1320498049 47 48 run500: 49 ./main -fmt csv -out output.csv -in examples/test_file_500.csv -ti 1320498000 -tf 1320529000 50 51 run10k: 52 ./main -fmt csv -out output.csv -in examples/test_file_10k.csv -ti 1320498000 -tf 1320529000 53 54 run50k: 55 ./main -fmt csv -out output.csv -in examples/test_file_50k.csv -ti 1320498000 -tf 1420529000 56 57 run100k: 58 ./main -fmt csv -out output.csv -in examples/test_file_100k.csv -ti 1320498000 -tf 1420529000 59 60 run500k: 61 ./main -fmt csv -out output.csv -in examples/test_file_500k.csv -ti 1320498000 -tf 1420529000 62 63 run50m: 64 ./main -fmt csv -out output.csv -in examples/test_file_50m.csv -ti 1320498000 -tf 1420529000 65 66 run50xml: 67 ./main -fmt xml -out output.xml -in examples/test_file_50.csv -ti 1320498000 -tf 1320498049 68 69 run5kxml: 70 ./main -fmt xml -out output.xml -in examples/test_file_5k.csv -ti 1320498000 -tf 1360498049