comparison 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
comparison
equal deleted inserted replaced
9:c7af696b6221 10:078dc69945ad
1 all: minimon fbt 1 # CC=gcc -O2 -march=native -fomit-frame-pointer
2
3 all: minimon minimon-turbo
2 4
3 minimon: minimon.c jpg.c 5 minimon: minimon.c jpg.c
4 $(CC) $(CFLAGS) -I. -Wall -g -o $@ minimon.c jpg.c fb.c -lusb -ljpeg 6 $(CC) $(CFLAGS) -I. -Wall -g -o $@ minimon.c jpg.c fb.c -lusb -ljpeg
7
8 minimon-turbo: minimon.c jpg.c
9 $(CC) $(CFLAGS) -DHAVE_LIBJPEG_TURBO -I. -I../libjpeg-turbo -Wall -g -o $@ minimon.c jpg.c fb.c -lusb ../libjpeg-turbo/.libs/libturbojpeg.a
5 10
6 fbt: fbt.c jpg.c 11 fbt: fbt.c jpg.c
7 $(CC) $(CFLAGS) -I. -Wall -g -o $@ fbt.c jpg.c -ljpeg 12 $(CC) $(CFLAGS) -I. -Wall -g -o $@ fbt.c jpg.c -ljpeg
8 13
9 clean: 14 clean:
10 rm -f minimon fbt 15 rm -f minimon minimon-turbo fbt
11 16
12 install: 17 install:
13 install -d $(DESTDIR)/usr/bin 18 install -d $(DESTDIR)/usr/bin
14 install -s minimon $(DESTDIR)/usr/bin 19 install -s minimon $(DESTDIR)/usr/bin
15 20

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