You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

27 lines
451 B

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