Tell git to ignore generated files.
[hama_mce-eventclient.git] / Makefile
blob96aa4278acf22bc25193d4f877794f9b87445b4d
1 CPP := g++
2 PWD := `pwd`
3 PREFIX := /usr
5 export PATH := $(PWD)/bin:$(PATH)
6 export PKG_CONFIG_PATH := $(PWD)/lib/pkgconfig
8 CFLAGS += -I$(PWD)/3rdparty/include
9 LFLAGS += -L$(PWD)/3rdparty/lib -lusb-1.0 -lpthread -lrt
11 all: hama_mce
13 install : hama_mce
14 install -m 644 hama_mce.rules /etc/udev/rules.d/
15 install -m 644 hama_mce.xml $(HOME)/.xbmc/userdata/keymaps/
16 install hama_mce $(PREFIX)/sbin/
18 % : %.cpp
19 $(CPP) -o $@ $< $(CFLAGS) $(LFLAGS)
21 hama_mce.cpp : 3rdparty/include/libusb-1.0/libusb.h
23 3rdparty/include/libusb-1.0/libusb.h :
24 ( cd ./3rdparty && make -f Makefile.libusb-1.0 )