aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 4e67373d5dbd21646bb6a91af363202d55c0a32e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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/