25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 603 B

123456789101112131415161718192021222324252627
  1. CC = gcc
  2. BIN = /usr/bin
  3. INCLUDES = -I.
  4. PALETTE_DIR=\"$(PWD)/palettes\"
  5. CFLAGS = -O3 -Wall -Wextra -Wno-missing-field-initializers -DPALETTE_DIR=$(PALETTE_DIR) $(INCLUDES)
  6. OBJS = src/main.o src/image.o src/dsp.o src/filter.o src/reg.o src/pngio.o src/median.o src/color.o
  7. aptdec: $(OBJS)
  8. $(CC) -o $@ $(OBJS) -lm -lsndfile -lpng
  9. reg.o: src/reg.c
  10. color.o: src/color.c
  11. main.o: src/main.c
  12. media.o: src/median.c
  13. dsp.o: src/dsp.c
  14. filter.o: src/filter.c
  15. image.o: src/image.c
  16. pngio.o: src/pngio.c
  17. clean:
  18. rm -f src/*.o aptdec
  19. install:
  20. install -m 755 aptdec $(BIN)
  21. uninstall:
  22. rm $(BIN)/aptdec