root/morphix/trunk/ddcxinfo/Makefile

Revision 2, 0.9 kB (checked in by nextime, 2 years ago)

Initial import, branching from morphix svn

Line 
1 CFLAGS=-Wall -O2 -g# -DDEBUG
2
3 TARGETS=ddcprobe svgamodes ddcxinfo ddcxinfo-knoppix modetest libvbe.a
4
5 ifeq (.depend,$(wildcard .depend))
6 TARGET=all
7 else
8 TARGET=depend all
9 endif
10
11 everything: $(TARGET)
12
13 all: $(TARGETS)
14
15 install: $(TARGETS)
16         cp -a ddcprobe $(DESTDIR)/usr/sbin/ddcprobe
17
18 ddcprobe: lrmi.o vesamode.o vbe.o ddcprobe.o
19
20 svgamodes: lrmi.o vesamode.o vbe.o svgamodes.o
21
22 ddcxinfo: lrmi.o vesamode.o vbe.o ddcxinfo.o
23
24 ddcxinfo-knoppix: lrmi.o vesamode.o vbe.o ddcxinfo-knoppix.o
25
26 modetest: lrmi.o vesamode.o vbe.o modetest.o
27
28 libvbe.a: lrmi.o vesamode.o vbe.o
29         $(AR) cru $@ $^
30
31 install-lib: $(prefix)/include/vbe.h $(prefix)/lib/libvbe.a
32
33 $(prefix)/include/vbe.h:
34         install -m 644 vbe.h $(prefix)/include/vbe.h
35
36 $(prefix)/lib/libvbe.a:
37         install -m 644 libvbe.a $(prefix)/lib/libvbe.a
38
39 clean:
40         $(RM) $(TARGETS) *.o .depend core
41
42 depend:
43         $(CPP) -M $(CFLAGS) *.c > .depend
44
45 ifeq (.depend,$(wildcard .depend))
46 include .depend
47 endif
Note: See TracBrowser for help on using the browser.