Makefile 395 B

12345678910111213141516171819202122
  1. CC=gcc -g -Wall
  2. all: main distance
  3. clean:
  4. rm distance.o; rm structs.o; rm main;
  5. distance: distance.c
  6. $(CC) -c distance.c
  7. structs: structs.c
  8. $(CC) -c structs.c
  9. main: main.c distance structs all-in-one-file
  10. $(CC) -o main main.c distance.o
  11. all-in-one-file: all-in-one-file.c
  12. $(CC) -o all-in-one-file all-in-one-file.c
  13. decrypt: decrypt.c encrypt
  14. $(CC) -o decrypt decrypt.c encrypt.o