Makefile 615 B

1234567891011121314151617181920212223242526
  1. CFLAGS=-ansi -pedantic -Wall -Wextra -g -I../../src/editors
  2. all: ../../src/data.o converter
  3. ../../src/data.o:
  4. make -C ../../src data.o
  5. formats.o: ../../src/editors/formats.c
  6. gcc $(CFLAGS) -Wno-long-long ../../src/editors/formats.c -c -o formats.o
  7. zip.o: ../../src/editors/zip.c
  8. gcc $(CFLAGS) ../../src/editors/zip.c -c -o zip.o
  9. dsp.o: ../../src/dsp.c
  10. gcc $(CFLAGS) ../../src/dsp.c -c -o dsp.o
  11. main.o: main.c
  12. gcc $(CFLAGS) main.c -c -o main.o
  13. converter: main.o formats.o zip.o dsp.o
  14. gcc main.o formats.o zip.o dsp.o ../../src/data.o -o converter -lm
  15. clean:
  16. rm *.o converter *.zip 2>/dev/null || true