1 | ######################################################################## |
---|
2 | # Modify these variables to fit your system. |
---|
3 | ######################################################################## |
---|
4 | |
---|
5 | ##################### Installation base directory |
---|
6 | # This should point to /usr/local, for most people, or |
---|
7 | # to /usr if you want to integrate LCDproc into your main filesystem. |
---|
8 | INSTALL_DIR = /usr |
---|
9 | |
---|
10 | ##################### Serial device |
---|
11 | # This should be whatever your display is connected to. |
---|
12 | # "make install" will create a link from /dev/lcd to DEVICE |
---|
13 | # if you don't already have a /dev/lcd |
---|
14 | DEVICE = /dev/ttyS0 |
---|
15 | |
---|
16 | ##################### Operating System |
---|
17 | # Uncomment the section for your OS. |
---|
18 | |
---|
19 | ### For Linux... |
---|
20 | OS=-DLINUX |
---|
21 | |
---|
22 | ### For BSD. We call it xBSD to |
---|
23 | # avoid a clash with the BSD in sys/param.h |
---|
24 | #OS=-DxBSD |
---|
25 | |
---|
26 | ### For IRIX... |
---|
27 | #OS=-DIRIX |
---|
28 | |
---|
29 | ### For Alpha processors... |
---|
30 | #CFLAGS += -mieee |
---|
31 | |
---|
32 | ##################### Inet port to use... |
---|
33 | # Use whatever you want... |
---|
34 | # The default is 13666 |
---|
35 | LCDPORT=-DLCDPORT=13666 |
---|
36 | |
---|
37 | ##################### Modescreen Options |
---|
38 | |
---|
39 | ##### Load Screen |
---|
40 | # Max: Load Avg at which the backlight will start blinking |
---|
41 | MISC += -DLOAD_MAX=1.3 |
---|
42 | # Min: Load Avg at which the backlight will turn off (asleep) |
---|
43 | MISC += -DLOAD_MIN=0.05 |
---|
44 | |
---|
45 | ##### Filesystems to display stats for... (comment out ones you don't want) |
---|
46 | # NFS (Network File System) |
---|
47 | #MISC += -DSTAT_NFS |
---|
48 | # SMBFS (Samba filesystem -- Windows drives) |
---|
49 | #MISC += -DSTAT_SMBFS |
---|
50 | |
---|
51 | |
---|
52 | ##################### Drivers |
---|
53 | # Comment out each section you don't want. |
---|
54 | |
---|
55 | # Matrix-Orbital displays |
---|
56 | #DRIVERS += -DMTXORB_DRV |
---|
57 | #DOBJ += MtxOrb.o |
---|
58 | |
---|
59 | # ISE CU20045SCPB-T23A VFD driver (VFD rulez! :-) |
---|
60 | DRIVERS += -DISET23A_DRV |
---|
61 | DOBJ += IseT23A.o |
---|
62 | |
---|
63 | # Wirz SLI |
---|
64 | #DRIVERS += -DSLI_DRV |
---|
65 | #DOBJ += wirz-sli.o |
---|
66 | |
---|
67 | # CrystalFontz displays |
---|
68 | #DRIVERS += -DCFONTZ_DRV |
---|
69 | #DOBJ += CFontz.o |
---|
70 | |
---|
71 | # Curses text-based output |
---|
72 | #DRIVERS += -DCURSES_DRV |
---|
73 | #DOBJ += curses_drv.o |
---|
74 | #LIB += -lncurses |
---|
75 | |
---|
76 | # Regular text output (ugly) |
---|
77 | DRIVERS += -DTEXT_DRV |
---|
78 | DOBJ += text.o |
---|
79 | |
---|
80 | # HD44780 parallel port lcd displays |
---|
81 | #DRIVERS += -DHD44780_DRV |
---|
82 | #DOBJ += hd44780.o |
---|
83 | # Pick one of the following ports to use |
---|
84 | #LPTPORT = 0x378 |
---|
85 | #LPTPORT = 0x278 |
---|
86 | #LPTPORT = 0x3bc |
---|
87 | |
---|
88 | # Joystick input... handy! |
---|
89 | #DRIVERS += -DJOY_DRV |
---|
90 | #DOBJ += joy.o |
---|
91 | |
---|
92 | # Irman input... handy! |
---|
93 | #DRIVERS += -DIRMANIN_DRV |
---|
94 | #DOBJ += irmanin.o ../../../libirman-0.4.1b/libirman.a |
---|
95 | #IRMAN=1 |
---|
96 | |
---|
97 | |
---|
98 | ##################### Debugging Options |
---|
99 | # Please uncomment only one of these two, and comment the other: |
---|
100 | # Uncomment this to build a debugging executable |
---|
101 | #DEBUG = -g -DDEBUG |
---|
102 | # If the above is commented, this shouldn't be... |
---|
103 | MISC += -Wno-unused |
---|
104 | |
---|
105 | |
---|
106 | ######################################################################## |
---|
107 | # You shouldn't need to touch anything below here. |
---|
108 | ######################################################################## |
---|
109 | |
---|
110 | GCC = gcc -Wall -O6 $(CFLAGS) |
---|
111 | VERSION = 0.4-pre9 |
---|
112 | MISC += $(OS) $(DRIVERS) $(DEBUG) $(LCDPORT) -DVERSION=\"$(VERSION)\" |
---|
113 | |
---|
114 | |
---|
115 | ################################################################### |
---|
116 | # Compilation... |
---|
117 | # |
---|
118 | #all: |
---|
119 | # @echo Compiling LCDproc... |
---|
120 | # @for i in $(DIRS); do \ |
---|
121 | # (cd $$i; [ -f Makefile ] && $(MAKE) $@) \ |
---|
122 | # done; true |
---|
123 | |
---|
124 | ################################################################## |
---|
125 | # Other stuff... |
---|
126 | # |
---|
127 | #clean: |
---|
128 | # @for i in $(DIRS); do \ |
---|
129 | # (cd $$i; [ -f Makefile ] && $(MAKE) $@) \ |
---|
130 | # done |
---|
131 | # rm -f *~ core |
---|
132 | # |
---|
133 | #edit: |
---|
134 | # emacs . & |
---|
135 | |
---|
136 | #.PHONY : todo |
---|
137 | #todo : |
---|
138 | # @echo ---------------=========================================== |
---|
139 | # @grep -n TODO\\\|FIXME `find . -type f` | grep -v grep |
---|
140 | # @echo ---------------=========================================== |
---|