ShuttlePRO/Makefile

29 wiersze
528 B
Makefile

# Copyright 2013 Eric Messick (FixedImagePhoto.com/Contact)
#CFLAGS=-g -W -Wall
CFLAGS=-O3 -W -Wall
INSTALL_DIR=/usr/local/bin
OBJ=\
readconfig.o \
shuttlepro.o
all: shuttlepro
install: all
install shuttle shuttlepro ${INSTALL_DIR}
shuttlepro: ${OBJ}
gcc ${CFLAGS} ${OBJ} -o shuttlepro -L /usr/X11R6/lib -lX11 -lXtst
clean:
rm -f shuttlepro keys.h $(OBJ)
keys.h: keys.sed /usr/include/X11/keysymdef.h
sed -f keys.sed < /usr/include/X11/keysymdef.h > keys.h
readconfig.o: shuttle.h keys.h
shuttlepro.o: shuttle.h