patch-makefile 1.1 KB

1234567891011121314151617181920212223242526272829
  1. $OpenBSD: patch-makefile,v 1.2 2013/11/02 11:13:19 ajacoutot Exp $
  2. --- makefile.orig Thu Jun 8 22:08:40 2006
  3. +++ makefile Sat Nov 2 12:00:57 2013
  4. @@ -13,19 +13,19 @@ libalpng.a: $(OBJECTS)
  5. ar crs libalpng.a $?
  6. objects/%.o: %.c
  7. - gcc $(CFLAGS) -O3 -Wall -Wextra -ansi -pedantic -Isrc -c $< -o $@
  8. + ${CC} $(CFLAGS) -O3 -Wall -Wextra -ansi -pedantic -Isrc -c $< -o $@
  9. objects/%.o: src/%.c
  10. - gcc $(CFLAGS) -O3 -Wall -Wextra -ansi -pedantic -Isrc -c $< -o $@
  11. + ${CC} $(CFLAGS) -O3 -Wall -Wextra -ansi -pedantic -Isrc -c $< -o $@
  12. objects/%.o: src/inflate/%.c
  13. - gcc $(CFLAGS) -O3 -Wall -Wextra -ansi -pedantic -Isrc -c $< -o $@
  14. + ${CC} $(CFLAGS) -O3 -Wall -Wextra -ansi -pedantic -Isrc -c $< -o $@
  15. objects/%.o: src/quantization/%.c
  16. - gcc $(CFLAGS) -O3 -Wall -Wextra -ansi -pedantic -Isrc -c $< -o $@
  17. + ${CC} $(CFLAGS) -O3 -Wall -Wextra -ansi -pedantic -Isrc -c $< -o $@
  18. ex01: objects/ex01.o libalpng.a
  19. - gcc $(LDFLAGS) -s -O3 -Wall -Wextra -ansi -pedantic $^ -o $@ -Isrc -L. `allegro-config --libs`
  20. + ${CC} $(LDFLAGS) -s -O3 -Wall -Wextra -ansi -pedantic $^ -o $@ -Isrc -L. `allegro-config --libs`
  21. clean: