openbsd-ports/graphics/allegropng/patches/patch-makefile
phessler 96817dc334 Library for loading PNG files for the Allegro library. Does not depend
on libpng nor zlib (however can take advantage of zlib if installed).

originally from & OK landry@
2009-10-15 14:39:10 +00:00

29 lines
1.1 KiB
Plaintext

$OpenBSD: patch-makefile,v 1.1.1.1 2009/10/15 14:39:10 phessler Exp $
--- makefile.orig Tue Jun 2 14:39:19 2009
+++ makefile Tue Jun 2 14:41:00 2009
@@ -13,19 +13,19 @@ libalpng.a: $(OBJECTS)
ar crs libalpng.a $?
objects/%.o: %.c
- gcc $(CFLAGS) -O3 -Wall -Wextra -ansi -pedantic -Isrc -c $< -o $@
+ ${CC} $(CFLAGS) -O3 -Wall -ansi -pedantic -Isrc -c $< -o $@
objects/%.o: src/%.c
- gcc $(CFLAGS) -O3 -Wall -Wextra -ansi -pedantic -Isrc -c $< -o $@
+ ${CC} $(CFLAGS) -O3 -Wall -ansi -pedantic -Isrc -c $< -o $@
objects/%.o: src/inflate/%.c
- gcc $(CFLAGS) -O3 -Wall -Wextra -ansi -pedantic -Isrc -c $< -o $@
+ ${CC} $(CFLAGS) -O3 -Wall -ansi -pedantic -Isrc -c $< -o $@
objects/%.o: src/quantization/%.c
- gcc $(CFLAGS) -O3 -Wall -Wextra -ansi -pedantic -Isrc -c $< -o $@
+ ${CC} $(CFLAGS) -O3 -Wall -ansi -pedantic -Isrc -c $< -o $@
ex01: objects/ex01.o libalpng.a
- gcc $(LDFLAGS) -s -O3 -Wall -Wextra -ansi -pedantic $^ -o $@ -Isrc -L. `allegro-config --libs`
+ ${CC} $(LDFLAGS) -s -O3 -Wall -ansi -pedantic $^ -o $@ -Isrc -L. `allegro-config --libs`
clean: