version 0.2.6
[expresskeys.git] / old-extra / Makefile-expresskeys
1 CC = gcc
2 CFLAGS = -O -g3 -Wall
3 # Use -g3 to get full debug info
4
5 INCLUDES = -I/usr/X11R6/include
6 LDFLAGS = -L/usr/X11R6/lib
7 LIBS = -lX11 -lXi -lXtst
8
9 TARGET = expresskeys
10
11 SRCS = globals.c config_read.c config_write.c on_error.c on_signal.c \
12         pen_mode.c get_device.c reg_events.c event_loop.c exec_shell.c \
13         main_setup.c
14
15 OBJS = $(SRCS:.c=.o)
16 ALL =  $(SRCS)
17
18 all:    $(TARGET)
19
20 $(TARGET):      $(OBJS)
21         $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
22
23 .c.o:
24         $(CC) $(CFLAGS) $(INCLUDES) -c $*.c
25
26 clean:
27         rm -f $(OBJS) $(TARGET)
28