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/