summaryrefslogtreecommitdiffstats
path: root/tools/ddcprobe/Makefile
blob: bcbf1464d5a4af0545dab129cabc5ec4edd4096f (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
CFLAGS=-Wall -O # -g -DDEBUG
LDFLAGS = -lm
TARGETS=ddcxinfos

ARCH := $(patsubst i%86,i386,$(shell uname -m))
ARCH := $(patsubst sparc%,sparc,$(ARCH))

ifeq (i386,$(ARCH))

ddcxinfos: lrmi.o vesamode.o vbe.o ddcxinfos.o

libvbe.a: lrmi.o vesamode.o vbe.o
	$(AR) cru $@ $^

#install: $(DESTDIR)/usr/include/vbe.h $(DESTDIR)/usr/lib/libvbe.a

$(DESTDIR)/usr/include/vbe.h:
	install -m 644 vbe.h $(DESTDIR)/usr/include/vbe.h

$(DESTDIR)/usr/lib/libvbe.a:
	install -m 644 libvbe.a $(DESTDIR)/usr/lib/libvbe.a

else
ddcxinfos: not_handled.c
	gcc -o $@ $<
endif

clean:
	$(RM) $(TARGETS) *.o core