96817dc334
on libpng nor zlib (however can take advantage of zlib if installed). originally from & OK landry@
29 lines
1.1 KiB
Plaintext
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:
|