diff Makefile @ 10:078dc69945ad

working: libjpeg-turbo support, handle fb and monitor with different size
author Peter Meerwald <pmeerw@pmeerw.net>
date Sun, 15 May 2011 17:48:57 +0200
parents 5c00b239e1c8
children 8fadd7877f6b
line wrap: on
line diff
--- a/Makefile	Sat May 14 23:08:11 2011 +0200
+++ b/Makefile	Sun May 15 17:48:57 2011 +0200
@@ -1,13 +1,18 @@
-all: minimon fbt
+# CC=gcc -O2 -march=native -fomit-frame-pointer
+
+all: minimon minimon-turbo
 
 minimon: minimon.c jpg.c
 	$(CC) $(CFLAGS) -I. -Wall -g -o $@ minimon.c jpg.c fb.c -lusb -ljpeg
 
+minimon-turbo: minimon.c jpg.c
+	$(CC) $(CFLAGS) -DHAVE_LIBJPEG_TURBO -I. -I../libjpeg-turbo -Wall -g -o $@ minimon.c jpg.c fb.c -lusb ../libjpeg-turbo/.libs/libturbojpeg.a
+
 fbt: fbt.c jpg.c
 	$(CC) $(CFLAGS) -I. -Wall -g -o $@ fbt.c jpg.c -ljpeg
 	
 clean:
-	rm -f minimon fbt
+	rm -f minimon minimon-turbo fbt
 	
 install:
 	install -d $(DESTDIR)/usr/bin

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.