summaryrefslogtreecommitdiff
blob: 96e6e3d21d450627cf87fdb9e602bfc45e80d435 (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
--- a/Changes
+++ b/Changes
@@ -1,4 +1,7 @@
 VERSION	DATE		WHAT WAS FIXED OR WHAT WAS/IS NEW
+
+	2 Jul 2002	2.4/2.5 patch
+
 1.05b11 7 Mar 2002	Support for multiple interfaces
 
 1.05b7	2 Apr 1998	Keeps LEDs deattached also after VT is reset if run
--- a/tleds.c
+++ b/tleds.c
@@ -43,16 +43,6 @@
 #define VERSION	"1.05beta11"
 #define MYNAME	"tleds"
 
-/* Supported kernel version */
-/* If you want to compile for Linux 2.1.x add -DKERNEL2_1 to gcc options. */
-/* Currently kernel v2.1.97 is "tested", older v2.1.x kernels may not work */
-#ifdef KERNEL2_1
-#undef KERNEL2_1
-#define KERNEL2_0 0
-#else
-#define KERNEL2_0 1
-#endif
-
 /* If you don't want X stuff. */
 #ifdef NO_X_SUPPORT
 #define REMOVE_X_CODE 1
--- a/Makefile
+++ b/Makefile
@@ -9,18 +9,18 @@
 
 # For 2.1.x kernels, you have to include -DKERNEL2_1 option for gcc
 
-GCCOPTS = -D_GNU_SOURCE -O3 -Wall 
+GCCOPTS = -D_GNU_SOURCE $(CFLAGS) $(LDFLAGS) -Wall 
 
 # The first one is if you want to include X code
 xtleds:	tleds.c Makefile
 	# Making xtleds
-	gcc $(GCCOPTS) -o xtleds tleds.c -I /usr/X11R6/include/ -L /usr/X11R6/lib/ -lX11
+	$(CC) $(GCCOPTS) -o xtleds tleds.c -I /usr/include/ -L /usr/lib/ -lX11
 
 # This second one works only when started in VT. Check the REMOVE_X_CODE
 # in the source code.
 tleds:	tleds.c Makefile
 	# Making tleds
-	gcc -DNO_X_SUPPORT $(GCCOPTS) -o tleds tleds.c
+	$(CC) -DNO_X_SUPPORT $(GCCOPTS) -o tleds tleds.c
 
 help:
 	# make help	-	this.