xkblayout-state/Makefile

25 lines
570 B
Makefile
Raw Normal View History

CXXFLAGS ?= -O2
PREFIX ?= /usr/local
2010-01-03 05:03:23 +08:00
all: xkblayout-state
XKeyboard.o: XKeyboard.cpp XKeyboard.h X11Exception.h
$(CXX) $(CXXFLAGS) -Wall -c -o $@ $<
2010-01-03 05:03:23 +08:00
wrapper.o: wrapper.cpp XKeyboard.h
$(CXX) $(CXXFLAGS) -Wall -c -o $@ $<
2010-01-03 05:03:23 +08:00
xkblayout-state: XKeyboard.o wrapper.o
$(CXX) $(CXXFLAGS) $(LDFLAGS) -lX11 -o xkblayout-state $^
2010-01-03 05:03:23 +08:00
clean:
2010-01-03 05:03:23 +08:00
rm -f xkblayout-state XKeyboard.o wrapper.o
install: xkblayout-state
install xkblayout-state $(DESTDIR)$(PREFIX)/bin
dist:
tar cfa xkblayout-state-v1b.tar.gz Makefile README.md wrapper.cpp X11Exception.h XKeyboard.cpp XKeyboard.h