aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..4e67373
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+TOP=
+CFLAGS=-g -O2 -Wall
+CC=gcc
+FLAGS=-lX11 -lXtst -I/usr/X11R6/include -L/usr/X11R6/lib
+
+enable_X11_numlock: enable_X11_numlock.c
+ $(CC) $(CFLAGS) $(FLAGS) -o $@ $<
+
+all: enable_X11_numlock
+
+clean:
+ rm -f enable_X11_numlock core *.o
+
+install: all
+ install -d $(TOP)/usr/X11R6/bin/
+ install -d $(TOP)/etc/{profile.d,rc.d/init.d}/
+
+ install -m755 enable_X11_numlock $(TOP)/usr/X11R6/bin
+ install -m755 numlock $(TOP)/etc/rc.d/init.d/
+ install -m755 numlock.sh $(TOP)/etc/profile.d/ \ No newline at end of file