blob: 185d37f08bb2297c7d786ceddf7bae21db51b25b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
NAME = monitor-edid
VERSION = 3.1
FILES = $(shell ls | grep -v CVS | grep -vF .tar)
SVNPATH = svn+ssh://svn.mageia.org/svn/soft/monitor-edid
ARCH := $(patsubst i%86,i386,$(shell uname -m))
ARCH := $(patsubst sparc%,sparc,$(ARCH))
ARCH := $(patsubst amd64,x86_64,$(ARCH))
ifeq (i386,$(ARCH))
HAS_VBE = y
endif
ifeq (x86_64,$(ARCH))
HAS_VBE = y
endif
ifeq (ia64,$(ARCH))
HAS_VBE = y
endif
DESTDIR=
bindir=/usr/bin
sbindir=/usr/sbin
TARGETS =
ifdef HAS_VBE
TARGETS += monitor-get-edid-using-vbe
endif
CPPFLAGS = -I.
CFLAGS = -O -Wall -g
OBJS = monitor-get-edid-using-vbe.c vbe.o
monitor-get-edid-using-vbe: LDFLAGS += -lx86
all: $(TARGETS)
monitor-get-edid-using-vbe: $(OBJS)
install: $(TARGETS)
install -d $(DESTDIR)$(bindir)
install -d $(DESTDIR)$(sbindir)
install monitor-edid monitor-probe monitor-probe-using-X $(DESTDIR)$(sbindir)
ifdef HAS_VBE
install monitor-get-edid-using-vbe $(DESTDIR)$(sbindir)
endif
install monitor-parse-edid $(DESTDIR)$(bindir)
ln -sf monitor-edid $(DESTDIR)$(sbindir)/monitor-get-edid
clean:
$(RM) $(TARGETS) *.a *.o *~
rm -rf $(NAME)-$(VERSION) $(NAME)-$(VERSION).tar.bz2
%.o: %.c
$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
dis:
rm -rf $(NAME)-$(VERSION) ../$(NAME)-$(VERSION).tar*
svn export -q -rBASE . $(NAME)-$(VERSION)
find $(NAME)-$(VERSION) -name .cvsignore |xargs rm -rf
tar cf ../$(NAME)-$(VERSION).tar $(NAME)-$(VERSION)
bzip2 -9f ../$(NAME)-$(VERSION).tar
rm -rf $(NAME)-$(VERSION)
svntag:
svn cp -m 'version $(VERSION)' $(SVNPATH)/trunk $(SVNPATH)/tags/v$(VERSION)
|